<分区>
在这种情况下
li {background: url("../img/grey-arrow-next.png") no-repeat right center;
border-bottom: 1px solid #D4E8EB}
我想在背景图像之前在右侧留出 20px
空间,我不能在 li
上留边距,因为 border
应该触及边缘.
所以我需要设置 20px
但它需要 20px
从左侧而不是右侧。
li {background: url("../img/grey-arrow-next.png") no-repeat 20px center;
border-bottom: 1px solid #D4E8EB}