css与html常见的三种结合方式示例介绍
发布时间:2016-12-27 来源:查字典编辑
摘要:Inserttitlehere.div_1{color:blue;font-size:20px;}内部样式表内联式样式表外部样式表
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="Demo.css"></link>
<>
<style type="text/css">
.div_1{
color: blue;
font-size: 20px;
}
</style>
</head>
<body>
<span> 内部样式表</span>
<div> 内联式样式表</div>
<div>外部样式表</div>
</body>
</html>