Justify Text in a HTML/XHTML TextArea

前端 未结 7 1311
借酒劲吻你
借酒劲吻你 2020-12-10 13:04

I am currently trying to justify text in a textarea, unfortunately the CSS:

text-align: justify;

Doesn\'t work on the text like center, lef

相关标签:
7条回答
  • 2020-12-10 13:53

    I believe that common practice is to use the TEXTAREA for input without worying about justification; and then, once the input is processed (i.e. the FORM is submitted, or an event of the TEXTAREA is captured), the contents are displayed in a non-editable text element (such as P, SPAN, TD) where the text-align: justify; style attribute will be honored.

    0 讨论(0)
提交回复
热议问题