将以下 CSS 代码进行缩写,注意要符合缩写的规范。 background-position:0 0; background-repeat:no-repeat; background-attachment:fixed; background-color:#f00; background-image:url(background.gif);
举一反三
- 将以下 CSS 代码进行缩写,注意要符合缩写的规范。 background-position:0 0; background-repeat:no-repeat; background-attachment:fixed; background-color:#f00; background-image:url(background.gif);
- (网站)background-color:#ccc;background-image:url(bg.png);background-repeat:no-repeat;background-position:-100pxcenter;以上样式的缩写正确的是?() A: background:#ccc,url(bg.png)no-repeat,-100pxcenter; B: background:#cccurl(bg.png)no-repeat-100pxcenter; C: background:#ccc;background-image:url(bg.png)no-repeat-100pxcenter; D: background-color:#ccc;background-image:url(bg.png)no-repeat-100pxcenter;
- 让一个盒子的背景图片只横向平铺() A: background:url(a1.jpg)repeat-x; B: background-color:repeat-x; C: background:url(a1.jpg)repeat-y; D: background:repeat;
- 下列哪个是( )设置背景图片(bg.gif)水平方向平铺? A: background:url(bg.gif) repeat-x; B: background:url(bg.gif) repeat-y; C: background:url(bg.gif) no-repeat; D: background:url(bg.gif);
- 2、代码background:red url(bg1.jpg) no-repeat fixed 5px 10px;是( )意思。