Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

XHTML手机支持字体大小设置

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: Series 40 1st Edition, Series 40 2nd Edition, Series 40 3rd Edition, S60 1st Edition S60 2nd Edition S60 3rd Edition, Series 80 2nd Edition

文章
huwell 在 26 Dec 2007 创建
最后由 hamishwillee 在 20 Oct 2011 编辑
* 开发伙伴平台:Series 40 1st Edition, Series 40 2nd Edition, Series 40 3rd Edition, S60 1st Edition S60 2nd Edition S60 3rd Edition, Series 80 2nd Edition

所有支持XHTML的手机


  • 详细描述

如果指定像素属性,则大部分XHTML浏览器不支持字体大小标签。如style="font-size:10px"将不被支持。因此我们尽可能不要使用像素单位来设置字体大小。


注意标准XHTML并不需要字体大小标签支持像素属性。


下面是个示例:

<style type="text/css">
 
.small { font-size:small; }
 
.medium { font-size:medium; }
 
.large { font-size:large; }
 
</style>


或者可以直接加上如下代码:


<big>Big</big> normal  <small>small</small>




  • 解决方案

不接受字体像素大小。使用另外的方法设置字体大小。

This page was last modified on 20 October 2011, at 05:52.
192 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×