English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

دليل مرجع HTML

مجموعة العلامات HTML

HTML: خاصية valign لـ <thead>

تعيين خاصية valign لتحديد طريقة التوجيه العمودي لمحتويات <thead>. لا يدعم HTML5 خاصية valign لـ <thead>. استخدم CSS بدلاً من ذلك.

 HTML <thead> العلامة

مثال عبر الإنترنت

تحتّل محتويات <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.

Definition and Usage

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.

Syntax

<thead valign="top|middle|bottom|baseline">

Attribute Value

ValueDescription
topAlign content upward.
middleAlign content to the center (default value).
bottomAlign content downward.
baselineAlign 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> العلامة