.color-overlap-right {
\t background-color : #d93;
\t margin-right : -25%;
}
ol {
\t margin-left:0;
\t padding-left:0;
\t counter-reset: ol-item
}
ol li {
\t margin-left:0;
\t padding-left:0;
\t list-style-type:none;
\t counter-increment: ol-item;
}
ol li:before {
\t content:counter(ol-item) " ";
\t background-image: url('../img/square.png');
\t background-position: 0 -20px;
background-repeat: no-repeat;
}
<html lang="en">
<div class="container">
<div class="color-overlap-right">
\t \t \t <div class="left-text">
<ol style="list-style: aliceblue;">
<li>Earn</li>
\t \t \t \t \t \t <li>Transfer</li>
\t \t \t \t \t \t <li>Apply</li>
</ol>
</div>
\t </div>
</div>
我想在HTML看起來像這樣
這應該有序列表創建一個有序列表,而「點「 編號應以斜體和字體大小自定義。 應該顯示背景圖像/顏色。有人可以幫忙嗎?我目前能夠刪除「點」並添加背景顏色。不過,我無法調整背景圖片和數字之間的邊距,使其看起來類似於下圖所示。有人可以幫忙嗎?
發佈您的代碼,請 –