css hack (2)

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

Run This Code


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

Run This Code

6 Responses

  1. 陈设世家 May 1 2008 , 01:43 cn
    陈设世家
    幻想曲你好,我是陈设世家,我之前跟你的站点做过连接!现在好象找不到了,可以帮我补上吗?谢谢了!
    http://www.chenzhixin.com陈设世家lol
    yipainet@163.com
    #1
  2. 火车头 May 2 2008 , 10:09 cn
    火车头
    选择符 {width:IE5.x宽度; voice-family :"\"}\""; voice-family:inherit; width:正确宽度;}
    第一次知道还可以这样写CSS,79 感谢!我收藏一下~
    #2
  3. benben May 3 2008 , 10:14 cn
    benben
    你站点最近不稳定呀,早上访问的时候挂掉了!
    #3
  4. 幻想曲 May 3 2008 , 15:03 cn
    幻想曲
    @火车头:
    thank you
    @benben:
    这二天在杭州,没有关注服务器的情况,好像是服务器出了点故障
    #4
  5. 玉华 May 4 2008 , 19:42 cn
    玉华
    写hack真的很累.一般都就测试ff跟ie6.其他的不考虑了.
    #5
  6. 非主流 May 4 2008 , 20:14 cn
    非主流
    恭喜恭喜 pr7了
    #6

Write a comment:



(Will show your Gravatar icon)  



[b][/b] - [i][/i] - [u][/u]- [quote][/quote]

:-/ ^_^ :d :o :kiss: :) :p :se: [yeah] :( :love: :han: :up: :cry: :zzz: o_o

申请链接请看这里