3.在下列选项中,background-position属性值书写正确的是()
A: p{background-position:lefttop;}
B: p{background-position:left10;}
C: p{background-position:10top;}
D: p{background-position:top10;}
A: p{background-position:lefttop;}
B: p{background-position:left10;}
C: p{background-position:10top;}
D: p{background-position:top10;}
举一反三
- 【单选题】在下列选项中,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 ;}
- 结构:|表现: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
- 下列选项中,background-position属性值主要包括() A: border-radius B: background-size C: position | position D: length | length
- 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
- 下面哪个属性设置背景图片的位置? A: position B: background-position C: left D: display