【问题标题】:CSS : text-align:justify doesn't work in textarea for Internet ExplorerCSS : text-align:justify 在 Internet Explorer 的 textarea 中不起作用
【发布时间】:2015-09-23 17:45:44
【问题描述】:

text-align:justify in textarea 在 Internet Explorer 中不起作用。这里是源代码,很简单:

<textarea style="width:500px;height:100px;white-space:pre-line;text-align:justify;"></textarea>

当我在 textarea 中键入一些文本时,text-align:justify 不起作用。

你有解决办法吗?

在此先感谢您。

【问题讨论】:

  • 您在哪个版本的 IE 中遇到这种情况?
  • Internet Explorer 10 和边缘。

标签: css textarea text-align justify


【解决方案1】:

问题在于white-space: pre-line; 删除它,它应该可以工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-23
    • 1970-01-01
    • 2010-11-19
    • 1970-01-01
    • 1970-01-01
    • 2014-04-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多