花晨月夕
专注web开发,可开发网站、小程序、app、oa、erp等各种系统
nice主题发布文章表格如何发布成可左滑,不乱码的表格样式
2022-11-12 21:02:42
[code:html]<div style="overflow-x:auto">
<table style="min-width:1000px">
<tbody>
<tr>
<th>姓名</th>
<th>年龄</th>
</tr>
<tr>
<td>张三</td>
<td>18</td>
</tr>
<tr>
<td>吴彦祖</td>
<td>28</td>
</tr>
</tbody>
</table>
</div>[/code]
2个重要点,要在table外加一个元素,加上style="overflow-x:auto",表示子元素超出后出现滚动条,另外就是这个table要加一个最小宽度style="min-width:1000px" 这样表格超出父元素div宽度才能出现滚动条
2022-11-09 11:58:37
@TTT[img]https://kfuu.cn/zb_users/upload/2022/11/20221109115820166796630015114.jpeg[/img]
这不是有吗
2022-11-09 11:27:35
说有肯定就有
[img]https://kfuu.cn/zb_users/upload/2022/11/20221109112651166796441163689.png[/img]
导航你有没有添加子类?
2022-11-08 14:07:00
其它配置 - 自定义css
[code:css].post-grid .entry-header .entry-title {
white-space: normal;
}
.post-grid .entry-header .entry-title a{
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}[/code]
但是不建议这么干,如果有的文章标题本来1行可以显示的下,这样会造成文章列表无法对齐
2022-11-07 08:38:57
[img]https://kfuu.cn/zb_users/upload/2022/11/20221107083850166778153077466.png[/img]
是自己配置的