【问题标题】:inline styling in html [duplicate]html中的内联样式[重复]
【发布时间】:2021-02-22 22:02:00
【问题描述】:

如何包含类似于<strong><u> 标签的内联样式?

<strong> strong text </strong><div style="color:rgb(160, 160, 160)"> inline styled text </div>

我希望它在一行上显示“strong text inline styled text”,其中“inline styled text”用浅灰色着色。

【问题讨论】:

  • 使用 span 而不是 div

标签: html css


【解决方案1】:

您可以使用<span />

&lt;strong&gt; strong text &lt;/strong&gt;&lt;span style="color:rgb(160, 160, 160)"&gt; inline styled text &lt;/span&gt;

【讨论】:

    猜你喜欢
    • 2019-01-19
    • 1970-01-01
    • 1970-01-01
    • 2011-07-04
    • 2020-11-26
    • 2013-11-07
    • 1970-01-01
    • 2014-05-29
    • 2015-01-03
    相关资源
    最近更新 更多