要图像固定在屏幕上,不随页面元素滚动,以下正确的是()
A: background-position:center;
B: background-attachment:fixed;
C: background-attachment:scroll;
D: background-repeat:no-repeat;
A: background-position:center;
B: background-attachment:fixed;
C: background-attachment:scroll;
D: background-repeat:no-repeat;
举一反三
- 如果希望背景图像固定在屏幕上,不随着页面元素滚动,可以使用如下()代码来实现? A: background-attachment: scroll; B: background-position:0px 0px; C: background-repeat: no-repeat; D: background-attachment: fixed;
- 以下关于背景描述正确的是( ). A: background-image B: background-repeat C: background-attachment D: background
- 设置可以插入背景图片的属性有 A: background-image B: background-repeat C: background-attachment D: background
- (网站)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;