的替代品是标签?
我正在寻找 HTML
标签的替代品。使用
标签,长行有时会在不同的分辨率上出现问题,而且情况会变得越来越糟。问题是我需要使用
标签,因为将成为网站更新者的人不太了解 HTML,也没有时间。所以对他来说最简单的方法就是复制并粘贴文本。但是,虽然使用
标签使这一切变得更容易,但它会导致其他复杂性,使其他事情变得越来越困难。建议?
I am looking for a substitute for the HTML <pre>
tag. Using the <pre>
tag, long lines sometimes have issues on different resolutions, and it just gets worse and worse. The problem is I need to use the <pre>
tag because the one who will be the updater of the website doesn't know much HTML and also doesn't have the time. So it would be easiest for him to simply copy and paste the text. But while using the <pre>
tag makes that easier, it causes other complications down the line, making other things harder and harder. Suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在服务器上使用 Markdown 或 Textile 等工具从简化的标记语言生成 HTML。
Use something like Markdown or Textile on the server to generate HTML from a simplified markup language.
为什么你想要一个替代品?如果
Why would you want a substitute? If the
<pre>
does what you want, use it. But I agree with you, using<pre>
is not going to look good.David has a good suggestion. Try a search on "convert text to html." If you need a WYSIWYG editor for a CMS that you are building, search for "wysiwyg html editor." TinyMCE is popular, also YUI 2: Rich Text Editor