CSS 样式种类
1)宽度、样式、颜色(border:2px solid red)
view code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div style="border:1px solid red">anyway!!!</div>
<div style="border:1px dotted green">anyway!!!</div>
</body>
</html>
view code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div style="
height: 100px;/*标签高度*/
width: 200px;/*标签宽度*/
font-size: 24px;/*字体大小*/
text-align: center;/*文字左右居中*/
line-height: 100px;/*垂直高度根据标签高度*/
color: mediumvioletred;/*字体颜色*/
font-weight: bold; /*字体加错*/
border:1px dotted red;">anyway!!!</div>
</body>
</html>
标签:code,Title,样式,anyway,height,CSS,种类 From: https://www.cnblogs.com/Justin-anyone/p/16856233.html