普通文字分散
效果:
https://sandbox.runjs.cn/show/pfadwcwp
代码 :
<div class="test1">
十年前你说生如夏花<i></i>
</div>
<div class="test2">
十年后你说平凡才是唯一的答案
</div>
div{
border: 1px solid #f0f;
color: #fff;
300px;
margin-top: 10px;
}
.test1 {
text-align:justify;
}
.test1 i {
display:inline-block;
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;
-
相关阅读:
golang strings.Split函数
Launch agent by connecting it to the master
使用srvany.exe把程序安装成windows服务的方法
区别对待 .gz 文件 和 .tar.gz 文件
go 使用 sort 对切片进行排序
Go数组遍历与排序
Container killed on request. Exit code is 143
ERROR tool.ImportTool
报错笔记:sqoop 执行import命令报错
连不上网
-
原文地址:https://www.cnblogs.com/52liming/p/8654259.html
Copyright © 2011-2022 走看看
<td>
添加如下属性即可
text-align:center;
text-align:justify;
text-justify:distribute-all-lines;
text-align-last:justify;
Launch agent by connecting it to the master
使用srvany.exe把程序安装成windows服务的方法
区别对待 .gz 文件 和 .tar.gz 文件
go 使用 sort 对切片进行排序
Go数组遍历与排序
Container killed on request. Exit code is 143
ERROR tool.ImportTool
报错笔记:sqoop 执行import命令报错
连不上网
Copyright © 2011-2022 走看看