下列样式定义字体间距为0.5倍间距、水平左对齐、垂直顶端对齐、有下划线正确的定义是:(___)
A. p{text-decoration:underline; letter-spacing: 0.5em; vertical-align: top; text-align: left;}
B. p{text-decoration:0.5em; letter-spacing: underline; vertical-align: top; text-align: left;}
C. p{text-decoration: left; letter-spacing: top; vertical-align: 0.5em; text-align: underline;}
D. p{text-decoration:underline; letter-spacing: 0.5em; vertical-align: left; text-align: top;} 37.根据以下的html代码:h1{ color:”limegreen”;font-family:”arial” }可以知道( c )
E. 此段代码是一个类选择器
F. 选择器的名称是color
查看答案
阅读下面HTML代码,段落标签〈p〉内文本最终显示的颜色是(___)。 〈style type="text/css"〉 body { color:#333; } #text{ color:#f00; } .content { color:#00f; } .gray { color:#666; } 〈/style〉 〈p id="text" class="content gray"〉我我本将心向明月,奈何明月照沟渠。〈/p〉
A.
B. f00
C. B.
D. 00f
E. C.
F. 666
G. D.
H. 333
阅读下面的HTML及CSS代码,图片距最外面的DIV外边缘的距离是(___)。 〈style type="text/css"〉 #outbox { border:10px solid #ff0000; width:400px; } #inbox { border:20px solid #ff0000; margin:10px; padding:10px; } 〈/style〉 ... 〈div id="outbox"〉 〈div id="inbox"〉〈img src="flower.jpg" /〉〈/div〉 〈/div〉
A. 10px
B. 30px
C. 40px
D. 50px
下面选项中是合法的类样式的是(___)。
A. .word
B.
C. word
D. .2a
E. D.
F. a2
关CSS样式表描述不正确的是(___)
A. css样式表规则由选择器和声明组成
B. 选择器包括标签选择器、类别选择器和id选择器
C. html中部分标签可以作为css标签选择器
D. 用@import url(“样式表名”)完成外部样式表的导入