题目内容

在CSS样式表中,为元素添加背景颜色,使用()属性

A. color:red;
B. background-color:red;
C. backgroundcolor:red;

查看答案
更多问题

设置元素的边框线的线型单实线,红色,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;

答案查题题库