css hack (2)

in 没有分类

_property:value
属性前加_线,该hack对IE有效,在FF下无效
这段代码在IE下看,div的边框为蓝色,而在FireFox下无效


运行代码

盒模型解决方法
选择符 {width:IE5.x宽度; voice-family :”\”}\”"; voice-family:inherit; width:正确宽度;}
IE5.5及以下版本不认,其它版本与FF都认
如下,该段代码在FF与IE6/IE7能正确显示div宽度为200px


运行代码
6 Comments

6 Comments

  1. 幻想曲你好,我是陈设世家,我之前跟你的站点做过连接!现在好象找不到了,可以帮我补上吗?谢谢了!
    http://www.chenzhixin.com陈设世家:d
    yipainet@163.com

  2. 选择符 {width:IE5.x宽度; voice-family :"\"}\""; voice-family:inherit; width:正确宽度;}
    第一次知道还可以这样写CSS,:up: 感谢!我收藏一下~

  3. 你站点最近不稳定呀,早上访问的时候挂掉了!

  4. @火车头:
    thank you
    @benben:
    这二天在杭州,没有关注服务器的情况,好像是服务器出了点故障

  5. 写hack真的很累.一般都就测试ff跟ie6.其他的不考虑了.

  6. 恭喜恭喜 pr7了

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>