您的位置:首页 > Web前端 > CSS

IE支持而Firefox不支持的CSS属性

2010-02-24 19:57 344 查看
今天,居然发现了一个IE支持,而Firefox确不支持的CSS属性。

.peopleBox a { text-indent:-999px; }

测试的时候,发现IE下表现良好,但是Firefox确无动于衷。

一直以来,从小到大,思想里从来不会出现这样的情形,所以当时确实是大吃一惊。

Google后才发现:

This property specifies the indentation of the first line of text in a block. More precisely, it specifies the indentation of the first box that flows into the block's first line box. The box is indented with respect to the left (or right, for right-to-left layout) edge of the line box. User agents should render this indentation as blank space.

原来只对块级元素起作用,而且只是第一行。看来这些东西记得还是不是很牢固

参考资料:
1、W3C
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: