html-font

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#box{
200px;
height: 300px;
border: dashed 1px pink;
</datalist>
font-zise: 12px;
font-family: "仿宋";
text-indent: 2em;
text-align: left;
letter-spacing: 2px;
color:red;
text-decoration:line-through;
line-height: 25px;
font-weight:bold;
font-style: italic;

/*
font
font-size 文字大小
font-weight 文字加粗(bold加粗/normal正常)
font-style 文字倾斜(italic倾斜/normal正常)
line-height 行高 (文字在一行上下居中)
font-family 字体
letter-spacing 字间距
color:red 颜色
font-weight:bold; font-style 文字倾斜(italic倾斜/normal正常)加粗
line-height: 行高
text-align 对齐方式/left/right
text-decoration 文本修饰(underline下划线/line-through 删除线/overline 上划线/none)
-------------------------------------
font:font-weight font-style font-size/line-height font-family;
font:font-size font-family(必须要写)
*/

}
</style>
</head>
<body>
<div id="box">
一首诗<br />
诗应该是能吟诵的<br>
能上口上心<br>
能在饥饿时被大地吸入<br>
并且感到甘甜<br>
诗应该念着念着<br>
就唱起来了<br>
唱着唱着就飞起来了<br>
诗应该有羽毛<br>
用我的心和它的翅膀<br>
使我随时能起身离去<br>

</div>

</body>
</html>

原文地址:https://www.cnblogs.com/pcjbk/p/9786340.html