01.22 CSS基础

2019-01-22  本文已影响0人  xxxQinli

1. 什么是CSS(层叠样式表,简称样式表)

2. 怎么写CSS(语法)

3. CSS写在哪儿

4. CSS中的值

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>CSS基础</title>
    <link rel="stylesheet" type="text/css" href="css/CSS基础.css">
    <link rel="icon" type="img/ico"href="css/jd_logo.ico">
    <style type="text/css">
      div{
        background-color: green
      }
      p{
        color: blue
      }
    </style>
  </head>
  <body>
  <div style="color: rgba(0,0,255,1); font-size:20px">
    我是div1
  </div>
  <p>我是段落</p>
  <div id="">
    我是div2
  </div>
  </body>
</html>


上一篇 下一篇

猜你喜欢

热点阅读