css背景图像属性_列表样式图像(CSS属性)

css背景图像属性

描述 (Description)

This property specifies the image to use as a list marker for an item in a list (an element whose display property has the value list-item). If the specified image is available, it will replace any marker specified by the list-style-type property.

此属性指定用作列表中项目(其显示属性值为list-item的元素)的列表标记的图像。 如果指定的图像可用,它将替换list-style-type属性指定的任何标记。

The exact position of the list marker image can’t be specified beyond what the list-style-position property allows.

超出list-style-position属性所允许的范围时,无法指定列表标记图像的确切位置。

(Example)

This style rule assigns an image as the list marker for all items in the list with ID "links":

此样式规则为ID为"links"的列表中的所有项目分配一个图像作为列表标记:

#links li {
  list-style-image:
  ➥    url("/images/link.png");
}

(Value)

If the property value is specified as none, no list marker image will be used. Instead, the list-style-type property will control what type of list marker—if any—will be rendered.

如果属性值指定为none,则将不使用列表标记图像。 相反, list-style-type属性将控制将呈现哪种类型的列表标记(如果有)。

If the value is specified as a URI using the url() functional notation, the image at that URI will be used as the list marker if it’s available.

如果使用url()功能符号将值指定为URI,则该URI上的图像将用作列表标记(如果可用)。

翻译自: https://www.sitepoint.com/list-style-image-css-property/

css背景图像属性

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值