阿斯顿dasd
一、测试
单选(每题2分,共30题)
1.在HTML中,实现鼠标悬停在超链接上时,为无下划线的效果
A : a{text-decoration:underline}
B : a{text-decoration:none}
C : a:hover{text-decoration:none}
D : a:link{text-decoration:underline}
2.阅读下面HTML代码,段落标签<p>内文本最终显示的颜色是
<style type="text/css">
body { color:#333; }
#text{ color:#666; }
.content { color:#00f; }
.gray { color:#f00; }
</style>
<p id="text" class="content gray">我我本将心向明月,奈何明月照沟渠。</p>
A : #F00
B : #00F
C : #666
D: #333
3. 在HTML中,下面代码哪个是已被访问过呈红色文字的样式
A : a:link{color:red;}
B : a:hover{color:red;}
C : a:visited{color:red;}
D : a:active{color:red;}
4.在HTML页面中,使用无序列表实现横向的导航菜单时,通过哪个属性可以去除列表的默认列表符号
A : list-style
B : padding
C : z-index
D : float
5. 在HTML网页中添加如下CSS样式,鼠标悬浮在链接上面时,网页中的链接呈现的颜色为
body { color:red; }
a { color:black; }
a:link,a:visited { color:blue; }
a:hover,a:active { color:green; }
A : 红
B : 绿
C : 蓝
D : 黑
6.在 html 中,下列css属性中不属于盒子属性的是
A : border
B : padding
C : float
D : margin
7.在CSS中,可用于设置文本的行高的属性是
A : text-indent
B : letter-spacing
C : text-align
D : line-height
8.下列CSS代码中有几处语法错误
&td{font-size:12px , color:666666; }
A :1
B :2
C: 3
D :4
9.CSS盒子模型中表示内容与边框间的距离的属性为
A:padding