0
我試圖顏色的詞是這樣的:怎樣才能顏色在HTML文本中不使用跨度,DIV,或P
<span style="color: black;"><strong>2679</strong></span> pictures in <span style="color: black;"><strong>73</strong></span> albums!
出於某種原因,第二跨度會在文本換行。有任何想法嗎?
謝謝!
我試圖顏色的詞是這樣的:怎樣才能顏色在HTML文本中不使用跨度,DIV,或P
<span style="color: black;"><strong>2679</strong></span> pictures in <span style="color: black;"><strong>73</strong></span> albums!
出於某種原因,第二跨度會在文本換行。有任何想法嗎?
謝謝!
如果所有<strong>
標籤將有黑色文本,然後使用CSS來做到這一點,總之溝<span>
標籤:
strong {
color: #000;
}
或者,如果你只想要一些<strong>
標籤是黑色的,然後應用類那些:
strong.black {
color: #000;
}
<strong class="black">2679</strong> pictures in <strong class="black">73</strong> albums!
好主意,但不是所有的強標籤都會變黑。我可以添加一個強壯的課程嗎? – Sherif
天才,謝謝你,先生! – Sherif