在网页中使用链接样式文件“css_file.css”的正确语句是(  )。A.<

资格题库2022-08-02  34

问题 在网页中使用链接样式文件“css_file.css”的正确语句是(  )。A.<include rel=stylesheet type="text/css"href="css_file.css">B.<link rel=stylesheet type="text/css"href="css_file.css">C.<import rel=stylesheet type="tex/css"href="css_file.css">D.<use rel=stylesheet type="text/css"href="icss_file.css">

选项 A.<include rel=stylesheet type="text/css"href="css_file.css">
B.<link rel=stylesheet type="text/css"href="css_file.css">
C.<import rel=stylesheet type="tex/css"href="css_file.css">
D.<use rel=stylesheet type="text/css"href="icss_file.css">

答案 B

解析 本题考查级联样式表(CSS)的基础知识。
CSS又称为“风格样式表(Style Sheet)”,它是用来进行网页风格设计的。通过设立样式表,可以统一地、有效地控制网页外观。有三种方法可以在站点网页上使用样式表:
①外部样式:将网页链接到外部样式表。
一般链接的语句形式为:
<link rel="stylesheet"type="text/css"href="CSS文件路径">
②内页样式:在网页上创建嵌入的样式表。
③行内样式:应用内嵌样式到各个网页元素。
转载请注明原文地址:https://tihaiku.com/congyezige/2423707.html

最新回复(0)