wordpress 主题修改之css兼容

作者:  耕堂 | 本文浏览979次 | 2009年08月20日

测试或修改wordpress 主题时,要考虑到不同的浏览器对css的兼容性,目前主流的浏览器主要是firefoxie耕堂就实践过程谈谈它们两个对属性margin和height的态度。

  • 对于margin
  • 很多地方都在说firefox和ie对css的问题,耕堂在实践的过程中发现一些和网友们有点出入,如:
    1、*margin:10px;ie6能识别,firefox不能;
    2、margin:10px!importantie6不能识别,firefox可以,因为对!important敏感,在width设置时似乎也可以;
    3、margin:10px;二者都能识别。

  • 对于height
  • height:10px;
    height:20px!importantie6认为高为10px,firefox认为高为20px。

    现在有很多的wordpress 主题都是免费,有的也很漂亮,但css对浏览器的兼容性设计者都很重视。

     右上方更多相关内容/站内搜索-关键词请用空格隔开

  • 标签 :  ,
  • 原文链接 : http://www.gengtang.net/theme/wordpress-theme-css.html
  • 转载原创文章请注明 : 耕堂-gengtang.net
  • 发表留言

    可用HTML标签:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>