第1部分 总题数: 5
- 【单选题】 (2分)
下面选项中,( )可以设置网页中某个标签的右外边距为10像素。
A. margin:10px 0 0 0;
B. padding-right:10px;
C. margin:0 10px;
D. margin:0 10 0 0px;
本题总得分2分
- 【单选题】 (2分)
阅读下面HTML代码,如果期望tabs位于box容器的右下角,则需要添加的CSS样式是( )。
A. #box { position:relative; } #tabs { position:absolute; right:0; bottom:0; }
B. #tabs { position:absolute; right:0; bottom:0; }
C. #box { position:relative; } #tabs { position:right bottom; }
D. #tabs { position:relative; right:0; bottom:0; }
本题总得分2分
- 【单选题】 (2分)
在HTML页面中,要通过无列表符号实现横向的导航菜单,不需要使用到的CSS属性是( )。
A. z-index
B. float
C. list-style
D. padding
本题总得分2分
- 【单选题】 (2分)
CSS盒子模型中表示内容与边框间的距离的属性为( ),表示盒子与其盒子之间的距离的属性为( )。
A. padding margin
B. margin border
C. padding border
D. margin padding
本题总得分2分
- 【单选题】 (2分)
在网页中有一个id为content的div,下面( )正确设置它的宽度为200像素,高度为100像素,并且向左浮动。
A. #content{width:200px;height:100px;clear:left;}
B. #content{width:100px;height:200px;float:left;}
C. #content{width:200px;height:100px;float:left;}
D. #content{width:100px;height:200px;clear:left;}
本题总得分2分