最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
背景(Background)如何缩写?
时间:2022-07-02 12:37:25 编辑:袖梨 来源:一聚教程网
Background背景的属性如下:
●background-color:#f00;
●background-image:url(background.gif);
●background-repeat:no-repeat;
●background-attachment:fixed;
●background-position:0 0;
可以缩写为一句:background:#f00 url(background.gif) no-repeat fixed 0 0;
语法是background:color image repeat attachment position;
你可以省略其中一个或多个属性值,如果省略,该属性值将用浏览器默认值,默认值为:
●color: transparent
●image: none
●repeat: repeat
●attachment: scroll
●position: 0% 0%
相关文章
- 奇迹暖暖喵喵糖怎么获得 05-11
- fgo狂大公技能宝具怎么样 05-11
- 以闪亮之名新六星怎么样 05-11
- FGO白纸化地球自由关卡配置掉落一览 05-11
- FGO巡灵祝祭第2弹卡池抽取价值分析 05-11
- 重返未来1999箱中展映怎么玩 05-11