【单选题】在下列选项中,background-position属性值书写正确的是()。
A. p{ background-position:left top; } B. p{ background-position:left 10; } p{ background-position:left top; } C. p{ background-position:10 top ;} D. p{ background-position:top 10 ;}
A. p{ background-position:left top; } B. p{ background-position:left 10; } p{ background-position:left top; } C. p{ background-position:10 top ;} D. p{ background-position:top 10 ;}
p{ background-position:left top; }
举一反三
- 结构:|表现:div{width:678px;height:456px;background:#f00}|p{width:234px;height:124px;background:#00f} 以下选项中,可以实现让p在div中水平和垂直居中的代码() A: 给p添加position:absolute;left:0;top:0;bottom:0;right:0;margin:auto 给div添加position:relative B: 给p添加position:absolute;left:50%;top:50%; 给div添加position:relative C: 给p添加position:absolute; left:50%;top:50%;margin-left:117px;margin-top:62px 给div添加position:absolute D: 给p添加position:absolute;left:50%;top:50%;margin-left:-117px;margin-top:-62px 给div添加position:absolute
- In css style, the meaning of background-position:-10px 20px is ( ) A: The background<br/>picture is offset by 10px to the left and 20px to the down B: The background<br/>picture is offset by 10px to the left and 20px to the top C: The background<br/>picture is offset by 10px to the right and 20px to the down D: The background<br/>picture is offset by 10px to the right and 20px to the upper
- 3.在下列选项中,background-position属性值书写正确的是() A: p{background-position:lefttop;} B: p{background-position:left10;} C: p{background-position:10top;} D: p{background-position:top10;}
- 【多选题】以下background-position属性的取值方式正确的是 A. background-position: top center; B. background-position: 10% 20%; C. background-position: 30px; D. background-position: 30px 100px;
- In css, the background picture needs to be located in the lower left corner of the box and should be written as: ( ) A: background-image:left foot B: background-image:left bottom C: background-position:left foot D: background-position:left bottom
内容
- 0
下面哪个属性设置背景图片的位置? A: position B: background-position C: left D: display
- 1
下列选项中,background-position属性值主要包括() A: border-radius B: background-size C: position | position D: length | length
- 2
标签定位在距其父标签左边50px,上边100px的CSS正确写法是( ) A: {position:static;left:50px;top:100px} B: {position:relative;left:50px;top:100px} C: {position:absolute;left:50px;top:100px} D: {position:fixed;left:50px;top:100px}
- 3
在CSS3中,若父标签已设置position:relative,将标签定位在距其父标签左边50px,上边100px的CSS正确写法是() A: {position:static;left:50px;top:100px} B: {position:relative;left:50px;top:100px} C: {position:absolute;left:50px;top:100px} D: {position:fixed;left:50px;top:100px}
- 4
以下那些选项是属性background-position的属性值() A: left B: right C: top D: center