×
HTML标签列表(字母排序)HTML标签列表(功能排序)HTML 全局属性HTML 事件属性HTML 画布HTML 音频/视频HTML 有效 DOCTYPESHTML 颜色名HTML 拾色器HTML 颜色混搭HTML 字符集HTML ASCIIHTML ISO-8859-1HTML 符号实体HTML URL 编码HTML 语言代码HTML 状态消息HTML GET/ POST方法Px、Em 换算工具键盘快捷键

HTML 标签

<!--...--><!DOCTYPE><a><abbr><acronym><address><applet><area><article><aside><audio><b><base><basefont><bdi><bdo><big><blockquote><body><br><button><canvas><caption><center><cite><code><col><colgroup><command><datalist><dd><del><details><dfn><dialog><dir><div><dl><dt><em><embed><fieldset><figcaption><figure><font><footer><form><frame><frameset><head><header><hgroup><h1><hr><i><iframe><img><input><ins><kbd><keygen><label><legend><li><link><map><mark><menu><meta><meter><nav><noframes><noscript><object><ol><optgroup><option><output><p><param><pre><html><progress><q><rp><rt><ruby><s><samp><script><section><select><small><source><span><strike><strong><style><sub><summary><sup><table><tbody><td><textarea><tfoot><th><thead><time><title><tr><track><tt><u><ul><var><video><wbr>

HTML <col> align 属性


HTML <col> 标签HTML <col> 标签


实例

<table width="100%" border="1">
  <col align="left">
  <col align="left">
  <col align="right">
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
</table>

尝试一下 »

浏览器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

只有 Opera 和 Internet Explorer 8 以及更早的IE版本支持 align属性(IE9不支持该属性)。


定义和用法

HTML5 不支持 <col> align 属性。

align 属性规定与 col 元素相关的内容的水平对齐方式。


语法

<col align="left|right|center|justify|char">

属性值

描述
left 左对齐内容(默认值)。
right 右对齐内容。
center 居中对齐内容(th 元素的默认值)。
justify 对行进行伸展,这样每行都可以有相等的长度(就像在报纸和杂志中)。
char 将内容对准指定字符。

HTML <col> 标签HTML <col> 标签


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)