实验二_CSS样式的应用
actively carry out the law on civil air defense education, drawn out of the air defense in Pingliandardize internal management, improve staff quality. Adhere to the
实验二 CSS样式的应用
一、实验目的:
掌握CSS样式的语法规则;
掌握CSS样式的类选择器的使用;
掌握CSS样式表的定义位置;
重点培养应用CSS样式的能力。
二、基本知识
1.CSS有语法规则
选择器{
属性1:值1;
属性2:值2;
……
属性n:值n
}
2.CSS的定义位置
(1)放在网页的头部<head></head>内部,因为其就在网页内定义,故而叫做“内部样式表”,注意这样的样式定义只能被本网页使用,别的网页是不能用到的,结构如下:
<head>
<style type=”text/css”>
<!--
选择器{
……
}
选择器{
……
}
-->
</style>
</head>
(2)将所有的样式放在网页之外的单独的文件中,因为其位居网页之外,故而叫做“外部样式表”,这样的样式可以被不同的网页导入或链接,可
actively carry out the law on civil air defense education, drawn out of the air defense in Pingliang city Building under easy fare, daily special inspection and regulation, overfulfilled the province upper and lower knots of up to 500,000 yuan fee collection tasks. 5, further standardize internal management, improve staff quality. Adhere to the
actively carry out the law on civil air defense education, drawn out of the air defense in Pingliang city Building under easy fare, daily special inspection and regulation, overfulfilled the province upper and lower knots of up to 500,000 yuan fee collection tasks. 5, further standardize internal management, improve staff quality. Adhere to the
actively carry out the law on civil air defense education, drawn out of the air defense in Pingliang ci
实验二 CSS样式的应用 来自淘豆网m.daumloan.com转载请标明出处.