文章目录
1.样式表回顾
1.1样式表的基本语法
- 标签选择器
- ID选择器
- 类选择器
1.2 常见样式
1.3 样式表类型
- 行内样式
- 内部样式表
- 外部样式表
2.js与cs 交互案例
2.1 使用style 改变样式
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
li{
font-size: 12px;
color: red;
background-image: url(img/bg1.gif);
background-repeat: no-repeat;
text-align: center;
height: 33px;
width: 104px;
line-height: 38px;
float: left;