可以使用以下(xia)的代碼(ma)實現:
```html
標簽
剩余文字
```
在CSS中,可(ke)以對(dui)`.label`和(he)`p`標(biao)簽進(jin)行樣式設置,如(ru)下:
```css
.label {
padding: 5px 10px;
background-color: #ffa500;
color: #fff;
border-radius: 5px;
font-weight: bold;
}
p {
font-size: 16px;
line-height: 1.5;
color: #333;
}
```
其(qi)中,`.label`定義了標簽(qian)的(de)樣(yang)(yang)式(shi),比(bi)如(ru)背景色、字體(ti)顏色、邊框圓角等(deng)(deng);`p`標簽(qian)定義了剩(sheng)余文字的(de)樣(yang)(yang)式(shi),比(bi)如(ru)字體(ti)大小、行高、文字顏色等(deng)(deng)。
給我們留言