我試圖在不使用 CSS 的情況下放置文本下劃線。我用過<p><u>text</u></p>and >,但似乎都沒有偏移選項,因此文本比默認值低幾個 px。
我見過的唯一其他方法是>但它需要整個頁面的長度。
uj5u.com熱心網友回復:
您可以使用邊框和填充(pb-1、pb-2 等...)實用程式類...
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<p class="m-5">
<span class="border-bottom pb-1">text with underline</span> and other text
</p>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/339159.html
標籤:html 推特引导 bootstrap-5
