Text-Indent for a text box in IE

荒凉一梦 提交于 2019-12-23 17:43:33

问题


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?


回答1:


#paaa { text-indent:50px; display: block; line-height: 1; }

Add line-height to make it work in IE. JSFiddle



来源:https://stackoverflow.com/questions/7797103/text-indent-for-a-text-box-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!