【单选题】在下列选项中,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 ;}
举一反三
- 结构:|表现: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