Line breaks in textarea element

后端 未结 8 1601
借酒劲吻你
借酒劲吻你 2020-12-30 22:18

This is PURE HTML. (no php or anything like that, if you want to know the background its a C# application with HTML in a web view).

All my HTML files are nicely form

8条回答
  •  佛祖请我去吃肉
    2020-12-30 22:49

    There isn't a pure HTML solution to your problem. Textareas always display any whitespace in their contents.

    In a perfect world, you'd be able to take advantage of the CSS property white-space; unfortunately, it isn't applied to textareas either.

提交回复
热议问题