2015-02-23 60 views
-1

我已經上傳的屏幕在這裏短, 我不知道,爲什麼Android瀏覽器歌廳不同的字體大小 縱向和橫向模式portrait modeAndroid的Chrome瀏覽器是歌廳不同模式的字體大小在縱向和橫向模式

$(document).ready(function(e) { 
 
    var x=$(".main").css("font-size"); 
 
\t alert(x) 
 
});
.main{ 
 
\t font-size:18px; 
 
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
 
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"> 
 
<title>Untitled Document</title> 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> 
 

 
</head> 
 

 

 
<body> 
 

 

 
<div class="main"> 
 
\t Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. 
 
</div> 
 
</body> 
 
</html>

 landscape mode

回答