【发布时间】:2021-08-24 09:58:48
【问题描述】:
我已经加入了自定义 CSS 以确保自定义项目符号点 IMG 显示在我的 ul 和 li 上。 IMG 未显示,仅显示默认项目符号点,我所做的任何更改均无济于事。它要么导致一切扭曲,要么什么都没有发生。
如果可以,请告知。
代码如下:
ul {
list-style-position: inside;
padding-left: 2rem;
list-style-type: !important;
} */
ul li {
padding-left: 2rem;
list-style-image: url(<img src="https://i.ibb.co/Tk59zVR/bullet-2.png" alt="bullet-2" border="0">);
background-position: 0 0;
background-size: 0
}
<p class="section-subtitle">
<ul>
<li>Savings on running costs/in-house labour costs</li>
<li>Allows you to stay focused on your core-business without distractions. </li>
<li>Reduce risk – government regulations non-compliance fines</li>
<li>Level the playing field – get access to the similar technology and expertise that big companies enjoy
</li>
</ul>
</p>
【问题讨论】:
标签: html css html-lists