如何将属性值拆分为两行?

编程入门 行业动态 更新时间:2024-10-24 17:28:00
本文介绍了如何将属性值拆分为两行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个asp应用程序,我想将如下所示的行拆分为两行(我想手动换行)

I have an asp 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.

更多推荐

如何将属性值拆分为两行?

本文发布于:2023-07-22 10:32:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1186724.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   两行   属性

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!