【发布时间】:2011-09-08 14:02:44
【问题描述】:
我正在尝试在 iPhone 的 UIWebView 中运行此 html。我的要求是字体大小不应该在旋转时改变。字体应该是Arial。
当我使用 css 时,解决了 32px “旋转时字体大小不变”的问题,但 Arial 没有解决,默认情况下它需要时间 new roman。如果我使用标签,它需要 Arial,但不遵守“旋转时字体大小不变”
<html>
<style type="text/css"> .textprop { font-face: Arial; font-size: 32px;} </style>
<head></head>
<body class="textprop">
<font face="Arial" size="32px">
<a href="mailto:subject= Deforestation Position Paper&attachment=Deforestation Position Paper.doc"> Email this page</a><br/>
<b><i>Responsible Sourcing Guidelines</i></b><br/>
</font>
</body>
</html>
【问题讨论】:
-
不知道能不能解决问题,但是'style'标签属于'head'标签。
-
不幸的是,您将其移至 head 标签开始之前。我通过在样式标签中使用 font-family 而不是 font-face 解决了这个问题