设置元素的边框线的线型单实线,红色,1px粗细,,哪个是正确的()
A. border:1px dashed red;
B. border:1px solid red;
C. border:1px dotted red;
查看答案
元素的底部外边距属性设置为10px ,可以写成()
A. margin-top:10px;
B. margin-bottom:10px;
C. padding-top:10px;
D. padding-bottom:10px;
设置背景图片不重复平铺,且水平居左,垂直居中,可以写成()
A. background:url(bg.jpg) no-repat left center;
B. background-image:url(bg.jpg) no-repat left center;
C. background-repeat:url(bg.jpg) no-repat left center;
D. background-color:url(bg.jpg) no-repat left center;
CSS样式表中,清除浮动,可以写成()
A. float:left;
B. clear:both;
在CSS3中,给元素设置为相对定位,可以写成()
A. position:absolute;
B. position:relative;
C. position:fixed;
D. position:static;