<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>text文本</title>
<style type="text/css">
div {
position: relative;
left: 100px;
top: 100px;
background: gold;
width: 200px;
height: 200px;
color: white;
font-size: 15px;
/*设置文本方向:
ltr:左到右;
rtl:右到左*/
direction: ltr;
/*设置字符间距*/
letter-spacing: 15px;
/*设置字符缩进*/
text-indent: 30px;
}
</style>
</head>
<body>
<b>粗体</b>
<i>斜体</i>
<small>小号字体</small>
<big>大号字体</big>
<sup>上标</sup>
<sub>下标</sub>
<!--noshade:规定 hr 元素的颜色呈现为纯色-->
<!-- :空格-->
<hr noshade="noshade" /> 天 气
<br />好<br />
<!--readonly:规定输入字段为只读-->
<!--wrap:规定当在表单中提交时,文本区域中的文本如何换行.hard:换行.soft:不换行.-->
<textarea name="" rows="" cols="" readonly="readonly" wrap="hard">你好,天气好</textarea>
</body>
</html>