11年前端开发积累 · HTML/CSS 布局与业务页面实战笔记
直接参考布局模式的 HTML 结构,复制到你的项目中:
<!-- Table 居中布局 -->
<table class="login-table">
<tr>
<td>
<div class="login-box">
<!-- 你的内容 -->
</div>
</td>
</tr>
</table>
在 HTML 中引入需要的 CSS 文件,直接使用类名:
<link rel="stylesheet" href="css-utils/01-text.css">
<link rel="stylesheet" href="css-utils/05-spacing.css">
<div class="text-ellipsis m-2 p-3">
这是一段超长文本,超出部分会显示省略号...
</div>