css_sduty/11_CSS常用文本属性/05_文本对齐_水平.html

23 lines
554 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>05_文本对齐_水平</title>
<style>
div {
font-size: 20px;
background-color: orange;
/* text-align 对齐 left(左对齐 默认) center居中 right右对齐 */
text-align: center;
}
.zyjblogs1 {
}
</style>
</head>
<body>
<div class="zyjblogs1">zyjblogs1</div><br>
</body>
</html>