Dễ dàng thay đổi sự liên kết dọc của nội tuyến, khối nội tuyến, bảng nội tuyến và các phần tử ô bảng. Thay đổi sự liên kết của các yếu tố với các tiện ích vertical-alignment .Xin lưu ý rằng ALign dọc chỉ ảnh hưởng đến nội tuyến, khối nội tuyến, bảng nội tuyến và các phần tử ô bảng. Chọn từ .align-baseline , .align-top , .align-middle , .align-bottom , <table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table> 0 và <table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table> 1 khi cần thiết.Với các yếu tố nội tuyến: baselinetopmiddlebottomtext-toptext-bottom top middle bottom text-top text-bottom <span class="align-baseline">baseline</span>
<span class="align-top">top</span>
<span class="align-middle">middle</span>
<span class="align-bottom">bottom</span>
<span class="align-text-top">text-top</span>
<span class="align-text-bottom">text-bottom</span>
Với các ô bảng:
đường cơ sở | đứng đầu | ở giữa | đáy | Text-Top | văn bản đáy |
<table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table> Thay đổi sự liên kết của các yếu tố với các tiện ích vertical-alignment .Xin lưu ý rằng ALign dọc chỉ ảnh hưởng đến nội tuyến, khối nội tuyến, bảng nội tuyến và các phần tử ô bảng. Chọn từ .align-baseline , .align-top , .align-middle , .align-bottom , <table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table> 0 và <table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table> 1 khi cần thiết.Với các yếu tố nội tuyến: Với các yếu tố nội tuyến: baselinetopmiddlebottomtext-toptext-bottom top middle bottom text-top text-bottom <span class="align-baseline">baseline</span>
<span class="align-top">top</span>
<span class="align-middle">middle</span>
<span class="align-bottom">bottom</span>
<span class="align-text-top">text-top</span>
<span class="align-text-bottom">text-bottom</span>
Với các ô bảng:
đường cơ sở | đứng đầu | ở giữa | đáy | Text-Top | văn bản đáy |
<table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table>
Để tập trung vào nội dung phi dòng theo chiều dọc (như <table style="height: 100px;">
<tbody>
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</tbody>
</table> 9 và hơn thế nữa), hãy sử dụng các tiện ích Flex Box của chúng tôi.SassAPI tiện ích "align": (
property: vertical-align,
class: align,
values: baseline top middle bottom text-bottom text-top
),
|