<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>行间css样式01</title>
</head>
<body>
<!--
css样式:
background 背景
background-color 背景色
width 宽 px
height 高 px
font-size 字体大小 px
color 文本颜色
line-height 行高
text-indent 首行缩进 px(还有其他单位)
-->
<div style="background:yellow;height:200px;"></div>
<!--
css行间样式引入:
缺点:1.违背W3C的编码理念
2.不利于代码的阅读和修改
优点:1.极其具有针对性
该种方法我们以后几乎不用.
-->
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>行间css样式01</title>
</head>
<body>
<!--
css样式:
background 背景
background-color 背景色
width 宽 px
height 高 px
font-size 字体大小 px
color 文本颜色
line-height 行高
text-indent 首行缩进 px(还有其他单位)
-->
<div style="background:yellow;height:200px;"></div>
<!--
css行间样式引入:
缺点:1.违背W3C的编码理念
2.不利于代码的阅读和修改
优点:1.极其具有针对性
该种方法我们以后几乎不用.
-->
</body>
</html>