www.cftea.com

内部浮动后 list-style-type 点点不显示的替换方案

ITPOW2020/7/13 17:43:06

li 内部有 a、span 标签,内部 float 后,li 的 list-style-type 点点不显示。将 list-style-position 为 inside 后,点点是显示了,但是位置不对。

替换方案:

第一步、list-style:none;

第二步、background:url('dot.png') 8px 50% no-repeat; 背景图片来显示点点。

<<返回首页<<