css - Safari shows bigger font-size in landscape mode -


in current responsive project have issue when using iphone in landscape mode, font-size lot bigger , introducing -webkit-text-size-adjust: none; didn't (see jsfiddle below).

i use these definitions in project:

<meta name="viewport" content="width=device-width, user-scalable=yes"/> 

and breakpoints

@media screen , (max-width: 35em) , (orientation:portrait) {   ... } @media screen , (max-width: 47em) , (orientation:landscape) {   body {      -webkit-text-size-adjust: none;   } } @media screen , (max-width: 35em) , (orientation:portrait),        screen , (max-width: 47em) , (orientation:landscape) { ... } 

you can directly test @ result page of jsfiddle.

<div class="test">this test</div> <div class="test">this test</div> <div class="test">this test</div> <div class="test">this test</div> <div class="test">this test</div> 

and

@viewport {   width: device-width; } @media screen , (max-width: 47em) , (orientation:landscape) {   body {      -webkit-text-size-adjust: none;   } }  .test {     width:100%;     margin-bottom:2px;     height:2em;     font-size:3em; } .test:nth-child(2n+1) {     background-color:#eeeeee; } 

what can wrong?

update:

  • even without breakpoints doesn't work, see jsfiddle

update 2015-07-15

  • i found workaround: disable zoom mobile phones solve problem. however, tablets desktop version, zoom must enabled tablets. achieved working solution checking screen size in javascript , if below 752px modify viewport definition width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -