问题
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