style css
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> //p,div{ // font-size:36px; // background-color:#363 // } </style> <link href="外接css.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="qq">div标签,直接一行</div> <span style="background-color:#963">span标签,能占多少占多少</span> <p class="qq">今天天气很不粗</p> <p id="qq">呵呵哒</p> <a href="http://www.baidu.com" target="new">百度</a> </body>
<style> * { margin:0px; padding:0px; } .qq{ color:#069; background-color:#0C3;} .qq p{ color:#03C background-color:#C06;} #qq{ color:#0C3; background-color:#C66;} a:link { color:#000; text-decoration:none;} a:visited{ color:#000; text-decoration:none;} a:hover{ color:#900; text-decoration:underline} a:active{ color:#00F; text-decoration:underline;} </style>