css--引入css的3种方法
<!--1、引入css,行间样式--><div style="width: 100px; height:100px; background-color: red"></div><!--2、页面级css 在header引入css--><!--3、外部css 文件 link-->
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> div{ width: 100px; height:100px; background-color: green; } </style> <link rel="stylesheet" href="a.css"> </head> <body> <!--1、引入css,行间样式--> <div style="width: 100px; height:100px; background-color: red "></div> <!--2、页面级css 在header引入css--> <!--3、外部css 文件 link--> <div></div> </body> </html>
相关推荐
jiedinghui 2020-10-25
Ladyseven 2020-10-22
zuncle 2020-09-28
xiaohuli 2020-09-02
葉無聞 2020-09-01
nicepainkiller 2020-08-20
AlisaClass 2020-08-09
myloveqiqi 2020-08-09
buttonChan 2020-08-02
drdrsky 2020-07-29
Ladyseven 2020-07-25
nicepainkiller 2020-07-24
AlisaClass 2020-07-19
hellowzm 2020-07-19
background-color: blue;background-color: yellow;<input type="button" value="变蓝" @click="changeColorT
昔人已老 2020-07-19
骆驼的自白 2020-07-18
lanzhusiyu 2020-07-19
hellowzm 2020-07-19
CSSEIKOCS 2020-07-18