文本缩进IE中的文本框 [英] Text-Indent for a text box in IE

查看:113
本文介绍了文本缩进IE中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过给文本框添加极限文本缩进来将文本推出文本框,但显然文本缩进在IE中被忽略/解释不同。 p>这里是一个模拟(试试在Chrome和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆