1.使用link标记<link rel="stylesheet" type="text/css" href="sheet.css" />
2.使用style元素<style type="text/css">
body{background:#fff;}
h1{font-size:2em;}
</style>
3.使用@import指令<style type="text/css">
@import url(sheet1.css);
@import "sheet2.css";
</style>
4.使用style属性的内联样式(inline style)<p style="color:#f00;">这是红色的字</p>
在实际应用中,使用style属性的内联样式是不推荐使用的