html通过link标签引入css

1.css文件:

div{
    border: 1px solid red;
}
span{
    border: 4px solid green;
}

html文件:

DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Titletitle>
    
    <link rel="stylesheet" type="text/css" href="1.css"/>
head>
<body>
    <div>div标签1div>
    <div>div标签2div>
    <div>div标签2div>
    <div>div标签2div>
    <div>div标签2div>
    <div>div标签2div>
    <span>span标签1span>
    <span>span标签2span>
    <span>span标签2span>
    <span>span标签2span>
    <span>span标签2span>
body>
html>

你可能感兴趣的:(笔记,css,html,css3)