一旦我在“Lorem”這個詞周圍創建了一個應答器或一個跨度,它就會脫離藍色列。如何解決這個問題呢?
非常感謝
這是一張圖片,以顯示情況
我嘗試學習制作兩列,其中包含一些樣式元素。在左側的欄中,我希望世界“Lorem 出現”以粗體顯示,并留在藍色欄內。
uj5u.com熱心網友回復:
您正在覆寫“*”選擇器中的背景,請嘗試向跨度添加背景,如下所示:
.bigword {
backgound-color: inherit !important
//if it does not work
backgound-color: blue !important
}
and wrap the text in some tag:
<p>
<span class="bigword">
lorem
</span>
text
</p>
and you must add the background to the 'p' tag
p {
backgound-color: inherit !important
//or
backgound-color: blue !important
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/532018.html
標籤:htmlcss弹性盒
下一篇:如何在html中將塊排成一行
