text-indent——首行缩进
来源:互联网 发布:程序员的数学全套pdf 编辑:程序博客网 时间:2024/04/26 16:27
1.text-indent所在的元素是行内元素而非块级元素。比如用在span,a等行内元素上;
解决方案:
在行内元素加上display:block; 或者把目标元素放入<div>等块级元素,然后把text-indent
样式应用到<div>等块级元素。
2.text-indent所在的元素未使用overflow属性;
解决方案:
在元素加上overflow:hidden;
3.text-indent设置的值超出浏览器默认的最大或最小值,例如:text-indent:999999em在谷歌(Chrome)浏览器下无效;
解决方案:
有前辈说Chrome0.4.154.22版本下对text-indent支持的缩进极限值是:-134217723px;超出这个数在Chrome下则text-indent属性无效,FF下也存在同样的问题,不过极限数值是多少没去研究了,ie下似乎没有极限或极限值范围大一些。所以不能随意按住999999不放啊。
0 0
- text-indent——首行缩进
- 首行文字缩进text-indent
- 文本缩进属性(text-indent)
- div+CSS实现段落首行缩进两个字符(text-indent标签)
- html首行缩进2字符,可以使用CSS属性中的【text-indent】进行设置。
- text-indent属性缩进无效解决方法
- 字符缩进 text-indent:0.5em;
- text-indent实现文本缩进布局
- css关于文本缩进text-indent属性
- 文本段落缩进text-indent:2em
- 14.text-indent:首行缩进他的范围在没有右边的时候是无限制的
- web--p 缩进 text-indent text-decoration 下划线
- CSS3属性之text-indent文本缩进使用详解
- CSS——文本样式(text-indent,text-transform,text-decoration,text-justify)
- HTML&CSS——text-indent:2em详解
- CSS属性(2)——text-indent 属性
- text-indent
- text-indent
- 常用C#字符串函数大全
- [BZOJ1143][CTSC2008]祭祀river(floyed+二分图匹配)
- leetcode(7),Contains Duplicate(python)
- [AndroidStudio]Building Apps with Over 64K Methods
- Http详解
- text-indent——首行缩进
- mongodb的增删查改(cmd操作)
- SPSS基础教程:SPSS菜单命令详解
- mybatis的mapper的配置文件的resultMap元素的用法和作用
- UIAlertController UIAlertAction (UIAlertView, UIActionSheet)
- LeetCode 343. Integer Break
- matlab 常用 api(六)
- 关于Webview带参访问服务器
- 微信js-sdk config JavaScript签名