2011-06-19 31 views
4

我有一個要求(並解決)在此post同樣的問題。但是,提供的解決方案對我無效。我試過-webkit-text-size-adjust: none<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />都無濟於事。-webkit-文字大小調整:無似乎並不奏效

這是一個簡單的HTML頁面是純文本的

<!DOCTYPE html> 

<html> 
<head> 
<link href="style.css" rel="stylesheet">  
<title>Pastrami fugiat pork tail ut</title> 
</head> 

<body bgcolor="#000000" link="#FFFFFF" vlink="#FFFF00"> 

    <h1>Pastrami fugiat pork tail ut</h1> 
    <p>Pancetta bresaola ham, brisket short ribs tri-tip sed cillum turkey pork loin corned beef venison tail.</p> 

</body> 
</html> 

的CSS

html 
{ 
    -webkit-text-size-adjust: none; 
} 

@font-face{ 
    font-family:"Fertigo"; 
    src: url(Fertigo.otf) format("opentype"); 
} 

body { 
    padding:0; 
    margin:1cm; 
    font-family:"Fertigo", "Georgia"; 
    font-size:56px; 
    line-height:1.5em; 
    color:#FFFFFF; 
    text-align:left; 
    text-decoration:none; 
    padding: 0px; 
} 

h1 { 
    font-family:"Fertigo", "Helvetica"; 
    color:#FFFFFF; 
    text-decoration:none; 
    font-size:1.25em; 
    font-weight:normal; 
    margin:0px; 
    padding:5px 0px 5px 5px; 
    line-height: 1.5em; 
} 

h4 { 
    font-family:"Courier New", "Georgia"; 
    font-size:1em; 
    color:#FFFFFF; 
    margin:0px; 
    padding:0px; 
    font-weight:normal; 
    line-height: 1.5em; 
} 
+1

爲什麼你在你的HTML樣式表**和**'的bgcolor = 「#000000」 鏈接= 「#FFFFFF」 的Vlink = 「#FFFF00」'? – BoltClock

+1

@boltclock可憐的HTML編碼? ;) – RHPT

+0

@robx @faraz沒有任何建議的工作。我認爲這與他的字體大小屬性有關。 – RHPT

回答

3

試試這個:

body { 
    padding:0; 
    margin:1cm; 
    font-family:"Fertigo", "Georgia"; 
    font-size:56px !important; 
    line-height:1.5em; 
    color:#FFFFFF; 
    text-align:left; 
    text-decoration:none; 
    padding: 0px; 
    -webkit-text-size-adjust: none !important; 
} 

h1 { 
    font-family:"Fertigo", "Helvetica"; 
    color:#FFFFFF; 
    text-decoration:none; 
    font-size:1.25em !important; 
    font-weight:normal; 
    margin:0px; 
    padding:5px 0px 5px 5px; 
    line-height: 1.5em; 
} 

h4 { 
    font-family:"Courier New", "Georgia"; 
    font-size:1em !important; 
    color:#FFFFFF; 
    margin:0px; 
    padding:0px; 
    font-weight:normal; 
    line-height: 1.5em; 
} 

@media only screen and (min-device-width : 320px) and (max-device-width : 1024px) { 
html { 
    -webkit-text-size-adjust: none !important; 
     } 
} 
3

嘗試把你的WebKit在身體和身體內的每個元件和第一與標準字體測試它像:

body * { 
    margin:1cm; 
    font-family:"Georgia"; 
    font-size:56px; 
    line-height:1.5em; 
    color:#FFFFFF; 
    text-align:left; 
    text-decoration:none; 
    padding: 0px; 
    -webkit-text-size-adjust: none; 
} 
+0

可以在原始(@RHPT)的作者不是這無論工作與否有何評論? – basZero