CSS——引入方式

1、行内式

<div style="color: white;background-color: #369;text-align: center">行内设置</div>

 

2、嵌入式

<html lang="en-US">
  <head>
     <title>锚点的使用</title>
      <meta charset="utf8">

      <style>
          div{
              color: white;
              background-color: #369;
              text-align: center
          }
      </style>
  </head>
  <body>
  
  <div> 嵌入式</div>

  </body>
</html>

 

3、链接式

<!DOCTYPE HTML>
<html lang="en-US">
  <head>
     <title>锚点的使用</title>
      <meta charset="utf8">

      <link rel="stylesheet" href="common.css">
  </head>
  <body>

  <div>链接式</div>
  
  </body>
</html>

  

 

posted @ 2021-09-30 13:01  映辉  阅读(35)  评论(0)    收藏  举报