2024知到答案 CSS基础 最新知到智慧树满分章节测试答案
第一章 单元测试
1、 问题:
CSS是( )的缩写。
选项:
A:Colorful Style Sheets
B:Computer Style Sheets
C:Cascading Style Sheets
D:Creative Style Sheets
答案: 【
Cascading Style Sheets
】
2、 问题:
引用外部样式表的格式是( )。
选项:
A:<style src="mystyle.css">
B:<link rel="stylesheet" type="text/css" href="mystyle.css">
C:<stylesheet>mystyle.css</stylesheet>
D:<stylesheet>mystyle</stylesheet>
答案: 【
<link rel="stylesheet" type="text/css" href="mystyle.css">
】
3、 问题:
引用外部样式表的元素应该放在 ( )。
选项:
A:HTML文档的开始的位置
B:HTML文档的结束的位置
C:在head元素中
D:在body元素中
答案: 【
在head元素中
】
4、 问题:
内部样式表的元素是( )。
选项:
A: <style>
B: <css>
C:<script>
D:<body>
答案: 【
<style>
】
5、 问题:
元素中定义样式表的属性名是( )。
选项:
A:style
B:class
C:styles
D:font
答案: 【
style
】
6、 问题:
下列选择器中正确的有( )。
选项:
A:p{color:red;}
B: .test{color:red;}
C: #test{color:red;}
D:$test{color:red;}
答案: 【
p{color:red;}
.test{color:red;}
#test{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:错
答案: 【
错
】
第二章 单元测试
1、 问题:
下列( )不属于CSS文本属性。
选项:
A:font-size
B:text-transform
C:text-align
D:line-height
答案: 【
line-height
】
2、 问题:
下列哪一项是CSS正确的语法构成( ).
选项:
A:body:color=black
B:{body;color:black}
C:body{color:black}
D:{body:color=black}
答案: 【
body{color:black}
】
3、 问题:
下列哪个CSS属性可以更改样式表的字体颜色( ).
选项:
A:text-color=
B:fgcolor:
C:text-color:
D:color:
答案: 【
color:
】
4、 问题:
下列哪个CSS属性可以更改字体大小( ).
选项:
A:text-size
B:font-size
C:text-style
D:font-style
答案: 【
font-size
】
5、 问题:
下列哪段代码能够定义所有P标签内文字加粗( ).
选项:
A:<p style=”text-size:blod”>
B:< p style=”font-size:blod”>
C:p{ text-size:bold; }
D:p{ font-weight:bold; }
答案: 【
p{ font-weight:bold; }
】
6、 问题:
下面哪个方法可以去掉文本超链接的下划线( ).
选项:
A:a{ text-decoration:no underline; }
B:a{ underline:none; }
C:a{ decoration:no underline; }
D:a{ text-decoration:none; }
答案: 【
a{ text-decoration:none; }
】
7、 问题:
以下声明可将文本字体加粗的有:( )。
选项:
A:font-weight:bold
B:font-weight:700
C:font-weight:lighter
D:font-weight:normal
答案: 【
font-weight:bold
font-weight:700
】
8、 问题:
以下装饰线设置正确的有:( ).
选项:
A:text-decoration:underline;
B:text-decoration:underline overline;
C:text-decoration:overline;
D:text-decoration:line-through;
答案: 【
text-decoration:underline;
text-decoration:underline overline;
text-decoration:overline;
text-decoration:line-through;
】
9、 问题:
在网页中用CSS设置页面字体类型,只能设置一种字体类型。
选项:
A:对
B:错
答案: 【
错
】
10、 问题:
可以使用CSS中的Word-spacing属性给中文词组设置词间距。
选项:
A:对
B:错
答案: 【
错
】
第三章 单元测试
1、 问题:
以下哪个选项是设置底边框的( ).
选项:
A:border-bottom
B:border-top
C:border-left
D:border-right
答案: 【
border-bottom
】
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦