zoukankan      html  css  js  c++  java
  • IE支持而Firefox不支持的CSS属性

    今天,居然发现了一个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

  • 相关阅读:
    爱摘苹果的小明
    盗梦空间
    九九乘法表
    谁是最好的Coder
    画图
    黑色帽子
    a letter and a number
    运维开发面试题
    python 守护进程daemon
    kubernets 应用部署
  • 原文地址:https://www.cnblogs.com/cocowool/p/1672937.html
Copyright © 2011-2022 走看看