Fra*_*lea 5 css position image
我有一个清单 list-style-image:url("../images/prices/tick.png");
如何正确定位图像以使图像和文本位于同一y坐标上?是不是有办法在urlwith 之后定义它url("link") 20px 30px?
我似乎无法在线查找有关如何再次完成的信息.
cla*_*uzy 10
我认为你正在考虑使用background-image而不是list-style-image......
所以设置list-style为无,并把background-image上li -然后是你就可以把它准确地使用位置略偏background-position的这一部分:
background: url("link") no-repeat 20px 30px;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
28853 次 |
| 最近记录: |