[CSS Hack] border-color:transparent & filter+ClearType bug
2007-08-22 18:25
429 查看
IE6不支持设置transparent为边框的颜色。
例如:
border:solid 1px transparent;
解决方法:
border:solid 1px transparent;
/*set an unused color to be index color*/
_border-color:tomato; /*For IE6-*/
/*then remove this indexed color*/
_filter:chroma(color=tomato);/*For IE6-*/
结果如下:
边框是没了,可字体怎么。。。
主意,以上现象是只有在打开系统的ClearType时才会看到的,如果把ClearType关掉就没问题了,见下:
关于这个问题的一个演示页面:
http://icant.co.uk/sandbox/msieopacityissue/
另:
http://www.hedgerwow.com/360/bugs/fix-ie-opacity-text.html
解决方法:
border:solid 1px transparent;
background-color:#BFDBFF;
/*set an unused color to be index color*/
_border-color:tomato; /*For IE6-*/
/*then remove this indexed color*/
_filter:chroma(color=tomato);/*For IE6-*/
搞了半天边框是透明了,底色又不透明了,汗!!!
例如:
border:solid 1px transparent;
解决方法:
border:solid 1px transparent;
/*set an unused color to be index color*/
_border-color:tomato; /*For IE6-*/
/*then remove this indexed color*/
_filter:chroma(color=tomato);/*For IE6-*/
结果如下:
边框是没了,可字体怎么。。。
主意,以上现象是只有在打开系统的ClearType时才会看到的,如果把ClearType关掉就没问题了,见下:
关于这个问题的一个演示页面:
http://icant.co.uk/sandbox/msieopacityissue/
另:
http://www.hedgerwow.com/360/bugs/fix-ie-opacity-text.html
解决方法:
border:solid 1px transparent;
background-color:#BFDBFF;
/*set an unused color to be index color*/
_border-color:tomato; /*For IE6-*/
/*then remove this indexed color*/
_filter:chroma(color=tomato);/*For IE6-*/
搞了半天边框是透明了,底色又不透明了,汗!!!
相关文章推荐
- border-color: transparent rgb(255, 48, 48) transparent transparent;
- IE6不支持border-color:transparent 的问题解决(转载)
- html中input type="text" 的readonly 属性与asp.net服务器控件TextBox的readonly属性的js赋值、调用的小bug
- Mysql jar包bug: Unknown type '14 in column 5 of 10 in binary-encoded
- Resource-type-->Color State List Resource
- J版bug之_get_host_numa_topolo TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
- Graphics::Clear(Color::Transparent)不会生效
- Bug3 ---error C2039: “SetWindowTextA”: 不是“ATL::CStringT<BaseType,StringTraits>”的成员
- border-color:transparent;
- 在Linux终端执行clear或top命令时出现:'xterm': unknown terminal type的错误
- CSS Bug、CSS Hack 和 Filter的介绍
- 修复EXTJS 4.0.2a下面gridFilter的type为list时,不能从服务器读取列表数据的bug
- Python_bug收集_TypeError:'str' does not support the buffer interface
- Bug:Interoptype 'Microsoft.Office.Interop.Excel.WorkbookClass' cannot be embedded. Use theapplicable
- python PIL bug: 'NoneType' object has no attribute 'bands' (解决)
- 浅谈css中的backgroundcolor="transparent"
- iOS- "unacceptable content-type: text/plain"等content-type bug解决方式
- 洞悉linux下的Netfilter&iptables:iptables命令行工具源码解析【下】
- No bean named 'springSecurityFilterChain' is defined 解决方法
- ExtJS3.4 xtype:'displayfield' 无法解析换行