text-indent: length | inherit | initial;
<!DOCTYPE html>
<html>
<head>
<title>
CSS text-indent Property
</title>
<style>
div {
font-size: 20px;
width: 500px;
height: 200px;
text-align: justify;
}
.jtppx {
text-indent: 100px;
}
.jtpem {
text-indent: -5em;
}
.jtpcm {
text-indent: 7cm;
}
</style>
</head>
<body>
<center>
<h1>文本缩进属性示例</h1>
<h2>text-indent: 70px;</h2>
<div class="jtppx">
您好,欢迎来到立地货(bianchenghao6.com),开发该站点的目的是使读者可以轻松学习相关的技术。bianchenghao6.com始终提供有关各种技术的简单且深入的教程。在这个世界上没有人是完美的,没有什么是永恒的。但是我们可以尝试变得更好。
</div>
<h2>text-indent: -5em;</h2>
<div class="jtpem">
您好,欢迎来到立地货(bianchenghao6.com),开发该站点的目的是使读者可以轻松学习相关的技术。bianchenghao6.com始终提供有关各种技术的简单且深入的教程。在这个世界上没有人是完美的,没有什么是永恒的。但是我们可以尝试变得更好。
</div>
<h2>text-indent: 7cm;</h2>
<div class="jtpcm">
您好,欢迎来到立地货(bianchenghao6.com),开发该站点的目的是使读者可以轻松学习相关的技术。bianchenghao6.com始终提供有关各种技术的简单且深入的教程。在这个世界上没有人是完美的,没有什么是永恒的。但是我们可以尝试变得更好。
</div>
</center>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>
CSS text-indent Property
</title>
<style>
div {
font-size: 20px;
width: 500px;
height: 200px;
text-align: justify;
}
.jtpper {
text-indent: 65%;
}
</style>
</head>
<body>
<center>
<h1>文本缩进属性示例</h1>
<h2>text-indent: 65%;</h2>
<div class="jtpper">
您好,欢迎来到立地货(bianchenghao6.com),开发该站点的目的是使读者可以轻松学习相关的技术。bianchenghao6.com始终提供有关各种技术的简单且深入的教程。在这个世界上没有人是完美的,没有什么是永恒的。但是我们可以尝试变得更好。
</div>
</center>
</body>
</html>