开发者

valign attribute in style classes

开发者 https://www.devze.com 2023-03-07 18:51 出处:网络
When we define a style class like the below in a CSS file, it is getting rendered in IE, but FF shows empty classes. vertical-align attribute w开发者_运维问答orks fine in both browsers. Why do we see

When we define a style class like the below in a CSS file, it is getting rendered in IE, but FF shows empty classes. vertical-align attribute w开发者_运维问答orks fine in both browsers. Why do we see this behaviour?

.text {
   valign: middle;
}


Because valign isn't valid CSS, while vertical-align is. And IE is known to ignore the rules. What more?

0

精彩评论

暂无评论...
验证码 换一张
取 消