3种方法:1,inline2,internal:3,external:

1,inline:
<h1 style="color: red;">hel</h1>
2,internal:
<style>
        h1{
            color:blue;
        }
    
</style>
3,external:
<link rel="stylesheet" type="text/css" href="css/style.css">

选择器

css begin

 

class

.className{ //后面一样


 

 background-color

color:

font: .........= below

font-family=xxxx=字体

font-size=16px=大小

font-weight=100, bond, normal=粗细

light-height= 1.5em/ 1.3px=行高

框模型

width=px= 80% responsive=宽度

margin=在周围加space

padding=内边距

css begin

 

 

 

 

 

相关文章:

  • 2021-12-30
  • 2021-11-30
  • 2022-03-06
  • 2022-01-28
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2021-07-03
  • 2022-03-01
  • 2021-05-21
  • 2021-04-12
  • 2021-09-19
相关资源
相似解决方案