如何将属性值拆分为两行? [英] How can I split an attribute value onto two lines?
本文介绍了如何将属性值拆分为两行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp.net应用程序,我想将如下所示的行拆分为两行(我想手动换行)
I have an asp.net app, and I'd like to split a line like the following on to two lines (I'd like to manually wrap the line)
<table style="border: thin solid #808080; padding: 3px 5px 7px 5px; vertical-align:top; margin-left: auto; margin-right: auto;">
理想情况下,我希望看到类似这样的内容:
Ideally, I'd like to see something like this:
<table style="border: thin solid #808080; padding: 3px 5px 7px 5px; "
+ "vertical-align:top; margin-left: auto; margin-right: auto;">
但当然+运算符在这里不起作用。
But of course the + operator doesn't work here.
有什么办法可以完成这个任务吗?
Is there any way to accomplish this task?
推荐答案
你不需要运算符。
<table style="border: thin solid #808080; padding: 3px 5px 7px 5px;
vertical-align:top; margin-left: auto; margin-right: auto;">
您应该考虑使用CSS文件,而不是内联样式。
You should consider using CSS files though instead of inline styling.
这篇关于如何将属性值拆分为两行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文