zoukankan
html css js c++ java
IE8 CSS兼容性记录(转)
对IE8、IE7、IE6、Firefox2.0.0.12做了简单的一些CSS HACK测试。下文中的 IE8 暂时仅代表IE8 beta1)。
CSS定义:p {color:#f00;}
xhtml结构:<p>文字</p>
主要是测试“文字”这个颜色在不同浏览器下使用hack的一些结果报告:
* html p {color:#f00;} 支持 IE6 不支持FF IE7 IE8b
*+html p {color:#f00;} 支持 IE7 IE8b 不支持FF IE6
p {*color:#f00;} 支持 IE7 IE6 不支持FF IE8b
相关测试:
IE8 中增加了 CSS3 中的子串匹配的属性选择器(substring matching attribute selectors),具体规则与正则中的匹配很相似:
E[att^=’val’] //子串以’val’ 开始
E[att$=’val’] //子串以’val’ 结束
E[att*=’val’] //子串中包含’val’
IE8 支持绝大多数基本的 CSS2.1 选择器,不支持的包括但不限于:[:first-line] 、[:first-letter]。
对于 CSS2.1 中的 generated content 部分,即通过使用伪元素 :before 和 :after 添加文本内容,IE8 中支持 并未完全 。
而对于几乎在其他浏览器中都支持的 opacity 和 RGBA ,IE8 中依旧没有支持。
对于原来用来区分 IE 的 HACK 在 IE8 中基本失效(比如*property:value、*property:value等)。
原有 IE 的 list-item whitespace bug 在 IE8 中依旧存在。
原有 IE 的 z-index bug 在 IE8 中依旧存在。
IE8 中产生新的 bug:当 line-heigth 小于正常值时,超出的部分将被裁切掉。
IE8 中依然不支持 display:table 。
IE8 中依然不支持 border 的 transparent 值。
IE8 中 @import 只支持三层嵌套。
IE8中 border的 transparent 不被支持
IE8中产生新的BUG:line-heigth BUG
/*/p{ color:#1e90ff}/*/ 只针对IE8的hack,可以是属性也可以是类
看来日后的网页都是超文本,而不是现在的多媒体文本了.
查看全文
相关阅读:
ZOJ Problem Set
ZOJ Problem Set
ZOJ Problem Set
ZOJ Problem Set
ZOJ Problem Set
387.First Unique Character in a String
169. Majority Element
postgresql 导出函数的方法
455. Assign Cookies.md
python模拟shell执行脚本
原文地址:https://www.cnblogs.com/luluping/p/1562545.html
最新文章
Maven最佳实战
SpringMVC 重定向到其他系统的页面的两种方式
Hibernate最佳实战
第三方认证
关于easyUI在子页面增加显示tabs的一个问题
SpringMvc父子容器
实体类注解错误:Could not determine type for: java.util.List
java JSP自定义标签
Java反射和注解
微服务架构如何实现客户端负载均衡
热门文章
分布式配置中心选择方案
springcloud-config配置中心的使用
注册中心ZooKeeper、Eureka、Consul 、Nacos对比
Zuul & Spring Cloud Gateway & Linkerd性能对比
路由网关Zuul之一
ZOJ Problem Set
ZOJ Problem Set
ZOJ Problem Set
ZOJ Problem Set
ZOJ Problem Set
Copyright © 2011-2022 走看看