- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>通高科技</title>
- <style>
- p{
- width: 150px;
- background-color: aqua;
- font-size: 15px;
- float: left;
- margin: 0 15px;
- font-size: 16px;;
- }
- .p1{
- line-height: 30px;
- text-indent: 32px;/* 字體大小*2 */
- }
- </style>
- </head>
- <body>
- <p>段落首行縮進(jìn):未縮進(jìn)</p>
- <p class="p1">段落首行縮進(jìn):縮進(jìn)2個(gè)字符</p>
- </body>
- </html>
段落間距設(shè)置:行與行間距、字體與字體之間間距
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>通高科技</title>
- <style>
- p{
- width: 150px;
- background-color: aqua;
- font-size: 15px;
- float: left;
- margin: 0 15px;
- }
- .p1{
- line-height: 30px;
- }
- .p2{
- letter-spacing:10px
- }
- </style>
- </head>
- <body>
- <p>段落行間距設(shè)置:這是一個(gè)段落</p>
- <p class="p1">段落行間距設(shè)置:字號(hào)16PX,行高20PX</p>
- <p class="p1 p2">段落字體間距設(shè)置:字體與字體之間的距離</p>
- </body>
- </html>