博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
文字分散对齐
阅读量:4523 次
发布时间:2019-06-08

本文共 759 字,大约阅读时间需要 2 分钟。

普通文字分散

效果:

1084504-20180810134948954-969975256.png

代码 :

十年前你说生如夏花
十年后你说平凡才是唯一的答案
div{        border: 1px solid #f0f;        color: #fff;            width: 300px;        margin-top: 10px;    }        .test1 {        text-align:justify;    }    .test1 i {        display:inline-block;        width: 100%;        /*padding-left: 100%;*/    }        .test2 {        text-align:justify;    }    .test2:after {        content: "";        display:inline-block;        padding-left:100%;    }

表格中 内文字分散对齐

<td> 添加如下属性即可

text-align:center;    text-align:justify;    text-justify:distribute-all-lines;    text-align-last:justify;
posted @
2018-03-26 21:55  阅读(
...) 评论(
...) 收藏

转载于:https://www.cnblogs.com/52liming/p/8654259.html

你可能感兴趣的文章
RabbitMQ学习之Publish/Subscribe(3)
查看>>
[SCOI2010]生成字符串
查看>>
JLOI2015 城池攻占
查看>>
在 Azure 虚拟机上快速搭建 MongoDB 集群
查看>>
跑步运动软件调研
查看>>
搭建ntp时间服务器 ntp - (Network Time Protocol)
查看>>
35. Search Insert Position
查看>>
awk使用
查看>>
ASP.NET Razor 视图引擎编程参考
查看>>
Vue 基础篇
查看>>
malloc_free_new_delete
查看>>
Python中的open和codecs.open
查看>>
开发Servlet的方法(2)
查看>>
asp.net mvc 伪静态添加
查看>>
\Process(sqlservr)\% Processor Time 计数器飙高
查看>>
ServletConfig讲解
查看>>
struts2配置默认Action
查看>>
EA类图与代码同步
查看>>
Spring集成MyBatis01 【推荐使用】、springMVC中文乱码和json转换问题
查看>>
Android Studio 智能感知无效
查看>>