CSS创建

1.外部样式表

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head> 

2.内部样式表

<head>
<style type="text/css">
  hr {color: sienna;}
  p {margin-left: 20px;}
  body {background-image: url("images/back40.gif");}
</style>
</head>

3.内联样式

<p style="color: sienna; margin-left: 20px">
This is a paragraph
</p>

 

posted @ 2019-07-13 10:27  C_XingM  阅读(98)  评论(0编辑  收藏  举报