Our online order form allows you to order directly in the internet, saving your time and offering you convenience. Here’s how you do it.


When you want to b" />

首页 > 脚本 > 网络编程 > 首行缩进文本左右对齐CSS代码,用CSS实现文本左右对齐且首行缩进的代码

首行缩进文本左右对齐CSS代码,用CSS实现文本左右对齐且首行缩进的代码

来源:整理 时间:2022-02-26 13:44:52 编辑:飘云 手机版

先看效果图吧:

代码比较干净了,源码如下:
 

 
代码如下:

<p class="elegant">Our online order form allows you to order directly in the internet, saving your time and offering you convenience. Here’s how you do it.</p>
<p class="elegant">When you want to buy our commodities, please register first. After you create your account successfully, you can directly order our products and pay for them. Next time you just click “log in”, you can enter your account, then shopping simply and conveniently.</p>

最重要的就是CSS了,代码如下:
 
 
代码如下:

<style type="text/css">
*.elegant
{
margin-left: 40px;
margin-right: 80px;
letter-spacing: 1px;
word-spacing: 2px;
line-height: 1.7em;
text-indent: 40px;
text-align: justify;
}
</style>

上面简单的CSS样式就实现了文本的左右对齐,并且段落的首行是缩进的.

首行缩进文本左右对齐CSS代码,用CSS实现文本左右对齐且首行缩进的代码相关文章内容教程说明。

文章TAG:文本左右对齐首行缩进CSS代码

最近更新

网络编程最新文章

脚本排行榜推荐