English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
تعيين خاصية valign لتحديد طريقة التوجيه العمودي لمحتويات <thead>. لا يدعم HTML5 خاصية valign لـ <thead>. استخدم CSS بدلاً من ذلك.
تحتّل محتويات <thead> في الصفحة العمودية في الأسفل:
<table style="width:100%;" border="1"> <thead valign="bottom"> <tr> <th height="50">صناعي دولاب بابي</th> <th height="50">نوع دولاب بابي</th> </tr> </thead> <tr> <td>دولاب الأميرة</td> <td>دولاب القدم الـ6</td> </tr> <tr> <td>دولاب الأميرة</td> <td>دولاب القدم الـ12</td> </tr> </table>الاختبار لرؤية ‹/›
إي إيالفاكسالопераالكمبيوترالسفاري
All major browsers support the valign attribute.
HTML5 does not support the <thead> valign attribute. Use CSS instead.
The valign attribute specifies the vertical alignment of the content within the <thead> element.
<thead valign="top|middle|bottom|baseline">
Value | Description |
---|---|
top | Align content upward. |
middle | Align content to the center (default value). |
bottom | Align content downward. |
baseline | Align with baseline. The baseline is an imaginary line. In a line of text, most letters are based on the baseline. The baseline value sets all table data in the line to share the same baseline. The effect of this value is often the same as the bottom value. However, if the text sizes are different, the baseline effect will be better. See the illustration below. |
إذا كانت حجم النصوص مختلفة، then bottom vs. baseline illustration:
valign="bottom"
valign="baseline"
HTML <thead> العلامة