行间css样式
<!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 首行縮進(jìn) px(還有其他單位)
?? ? -->
?? ?<div style="background:yellow;height:200px;"></div>
?? ?<!--
?? ??? ?css行間樣式引入:
?? ??? ?缺點(diǎn):1.違背W3C的編碼理念
?? ??? ???? 2.不利于代碼的閱讀和修改
?? ??? ?優(yōu)點(diǎn):1.極其具有針對(duì)性
?? ??? ?該種方法我們以后幾乎不用.
?? ?-->
</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 首行縮進(jìn) px(還有其他單位)
?? ? -->
?? ?<div style="background:yellow;height:200px;"></div>
?? ?<!--
?? ??? ?css行間樣式引入:
?? ??? ?缺點(diǎn):1.違背W3C的編碼理念
?? ??? ???? 2.不利于代碼的閱讀和修改
?? ??? ?優(yōu)點(diǎn):1.極其具有針對(duì)性
?? ??? ?該種方法我們以后幾乎不用.
?? ?-->
</body>
</html>
總結(jié)
- 上一篇: JAVA拾遗1
- 下一篇: 计算机软件质量保证计划示例