css_sduty/11_CSS常用文本属性/02_文本间距.html

40 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>02_文本间距</title>
<style>
div {
font-size: 30px;
}
.zyjblogs1 {
}
.zyjblogs2 {
/* 字母间隔 */
letter-spacing: 3px;
}
.zyjblogs3 {
/* 单词之间的间距 */
word-spacing: 20px;
}
.zyjblogs4 {
/* 单词之间的间距 */
word-spacing: -12px;
}
.zyjblogs5 {
}
.zyjblogs6 {
}
</style>
</head>
<body>
<div class="zyjblogs1">Lorem ipsum dolor sit amet consectetur. zyjblogs1</div><br>
<div class="zyjblogs2">Lorem ipsum dolor sit amet consectetur. zyjblogs2</div><br>
<div class="zyjblogs3">Lorem ipsum dolor sit amet consectetur. zyjblogs3</div><br>
<div class="zyjblogs4">Lorem ipsum dolor sit amet consectetur. zyjblogs4</div><br>
<div class="zyjblogs5">Lorem ipsum dolor sit amet consectetur. zyjblogs5</div><br>
<div class="zyjblogs6">Lorem ipsum dolor sit amet consectetur. zyjblogs6</div><br>
</body>
</html>