右中居中
举一反三
- 中国大学MOOC: 下面图片定位分别对应的是哪个选项?background-position: 100% 50%;background-position: 0% 100%;background-position: 50% 50%;
- {在CSS中属性background-position: right;还可以写成其他等价属性值,以下哪个是不正确的?( )。} A: background-position: 50% 100%; B: background-position: 100%; C: background-position: 100% 50%; D: background-position: right center;
- 结构:|表现: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
- 下面哪个属性设置背景图片的位置? A: position B: background-position C: left D: display
- 下列选项中,background-position属性值主要包括() A: border-radius B: background-size C: position | position D: length | length
内容
- 0
请问用()属性设置网页背景图像效果? A: background-color B: background-image C: background D: background-position
- 1
下面的选项中,哪个CSS属性有继承性( )? A: text-shadow B: background C: font-style D: position
- 2
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
- 3
下列用于设置背景位置属性的()。 A: bcakground-image B: position C: background-position D: background-repeat
- 4
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