CSS样式-模式
一、行内样式:
style="属性名:属性值;属性名:属性值"
二、内部样式表,写在head中:
<head>
<style type="text/css">
div {
color: #f00;
font-size: 45px;
background-ccolor: #000;
}
p {
color: #0F0;
}
</style>
</head>
三、引入CSS表的方式:通过引入CSS文件的方式
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<link rel="stylesheet" href="css/index.css" />
</head>