

1、单选题:
CSS是( )的缩写。
选项:
A:ComputerStyleSheets
B:CreativeStyleSheets
C:CascadingStyleSheets
D:ColorfulStyleSheets
答案: 【CascadingStyleSheets】
2、单选题:
引用外部样式表的格式是()。
选项:
A:<stylesheet>mystyle.css</stylesheet>
B:<link rel="stylesheet" type="text/css" href="mystyle.css">
C:<style src="mystyle.css">
D:<stylesheet>mystyle</stylesheet>
答案: 【<link rel="stylesheet" type="text/css" href="mystyle.css">】
3、单选题:
引用外部样式表的元素应该放在 ( )。
选项:
A:在head元素中
B:在body元素中
C:HTML文档的结束的位置
D:HTML文档的开始的位置
答案: 【在head元素中】
4、单选题:
内部样式表的元素是( )。
选项:
A:<css>
B:<script>
C:<body>
D:<style>
答案: 【<style>】
5、单选题:
元素中定义样式表的属性名是( )。
选项:
A:style
B:font
C:class
D:styles
答案: 【style】
6、多选题:
下列选择器中正确的有( )。
选项:
A:.test{color:red;}
B:#test{color:red;}
C:p{color:red;}
D:$test{color:red;}
答案: 【.test{color:red;};
#test{color:red;};
p{color:red;}】
7、多选题:
关于CSS基本语法说法正确的是( )。
选项:
A:当有多个属性时,用“;”进行区分
B:属性必须要包含在号之中
C:属性和属性值之间用等号链接
D:如果一个属性有几个值,则每个属性值之间用分号分隔开
答案: 【当有多个属性时,用“;”进行区分;
属性必须要包含在号之中】
8、判断题:
CSS是Cascading Style Sheet的英文缩写。
选项:
A:错
B:对
答案: 【对】
9、判断题:
CSS样式代码只能放在单独的文本文件中,不能写在HTML文件中。
选项:
A:错
B:对
答案: 【错】
10、判断题:
CSS中id选择器和类别选择器一样,两者没有区别。
选项:
A:对
B:错
答案: 【错】
备案号:冀ICP备20010840号 2020-2099辉辉网络科技 All Rights Reserved