标签:html back inpu str ffffff meta height color nbsp
CSS 简介
css是英文Cascading Style Sheets的缩写,称为层叠样式表,用于对页面进行美化。
存在方式有三种:元素内联、页面嵌入和外部引入,比较三种方式的优缺点。
语法:style = ‘key1:value1;key2:value2;‘
CSS选择器
div{ background-color:red; }
<div > </div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>战神</title>
<style>
div {
background-color: aquamarine;
border:1px solid red;
width: 900px;
height:1000px;
margin: 0 auto
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
.bd{ background-color:red; }
<div class=‘bd‘> </div>
#idselect{
background-color:red;
}
<div id=‘idselect‘ > </div>
#idselect p{
background-color:red;
}
<div id=‘idselect‘ >
<p> </p>
</div>
input,div,p{
background-color:red;
}
input[type=‘text‘]{ width:100px; height:200px; }
标签:html back inpu str ffffff meta height color nbsp
原文地址:https://www.cnblogs.com/bushaoxun/p/9133325.html