第10章:颜色与背景
10.4 应用
10.4.2 模拟边框
background-image
- 值:<uri> | none | inherit
- uri:图片的链接地址。
- none:无图片。
background-repeat
- 值:repeat | repeat-x | repeat-y | no-repeat | inherit
- repeat:背景图片在水平和垂直方向都重复显示。
- repeat-x:背景图片只在水平方向重复显示。
- repeat-y:背景图片只在垂直方向重复显示。
- no-repeat:背景图片不重复,只显示1次。
background-repeat
- 值:repeat | repeat-x | repeat-y | no-repeat | inherit
- repeat:背景图片在水平和垂直方向都重复显示。
- repeat-x:背景图片只在水平方向重复显示。
- repeat-y:背景图片只在垂直方向重复显示。
- no-repeat:背景图片不重复,只显示1次。
- repeat:背景图片在水平和垂直方向都重复显示。
- repeat-x:背景图片只在水平方向重复显示。
- repeat-y:背景图片只在垂直方向重复显示。
- no-repeat:背景图片不重复,只显示1次。
- repeat:背景图片在水平和垂直方向都重复显示。
- repeat-x:背景图片只在水平方向重复显示。
- repeat-y:背景图片只在垂直方向重复显示。
- no-repeat:背景图片不重复,只显示1次。
background-image
- 值:<uri> | none | inherit
- uri:图片的链接地址。
- none:无图片。
background-repeat
- 值:repeat | repeat-x | repeat-y | no-repeat | inherit
- repeat:背景图片在水平和垂直方向都重复显示。
- repeat-x:背景图片只在水平方向重复显示。
- repeat-y:背景图片只在垂直方向重复显示。
- no-repeat:背景图片不重复,只显示1次。