css文字首行缩进是什么代码,用CSS实现文本左右对齐且首行缩进的代码
先看效果图吧:

其源代码就比较干净了,源码如下:
复制代码代码如下:
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 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.
最重要的就是CSS了,代码如下:
复制代码代码如下:
*.elegant
{
margin-left: 40px;
margin-right: 80px;
letter-spacing: 1px;
word-spacing: 2px;
line-height: 1.7em;
text-indent: 40px;
text-align: justify;
}
上面简单的CSS样式就实现了文本的左右对齐,并且段落的首行是缩进的.
原文:http://www.jb51.net/css/25624.html
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
