文本缩进IE中的文本框 [英] Text-Indent for a text box in IE
本文介绍了文本缩进IE中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://jsfiddle.net/Cernx/1/
有没有任何解决方法?
解决方案
#paaa {text -indent:50px;显示:block; line-height:1; }
添加行高以使其在IE中正常工作。 JSFiddle
I'm trying to push my text out of the textbox by giving it an extreme text-indent, but apparently text-indent is ignored/interpreted differently in IE.
Here is a simulation (try it in Chrome and IE to see the difference):
http://jsfiddle.net/Cernx/1/
Is there any workaround for this? Or is there anotherway of pushing text out of the textbox?
解决方案
#paaa { text-indent:50px; display: block; line-height: 1; }
Add line-height to make it work in IE. JSFiddle
这篇关于文本缩进IE中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文