HTML——使用表格對錶單進行布局

來源:互聯網
上載者:User

標籤:blog   http   color   io   os   ar   使用   for   sp   





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>使用表格對錶單進行布局</title></head><body><form action="#" method="post">    <table width="450" border="0" bgcolor="#000000" cellspacing="1" cellpadding="2"><!--cellspacing指相鄰儲存格之間的間距,cellpadding指控制儲存格內部文字與邊框的邊距-->        <tbody>        <tr height="30">            <td colspan="2" align="center" bgcolor="#CCCCCC"><font size="5">使用者註冊</font></td>            </tr>            <tr height="30">            <td width="150" align="right" bgcolor="#E6E6E6">使用者名稱</td>                <td width="300" bgcolor="#E6E6E6">                <input type="text" name="UserName" maxlength="20" size="15" /></td>            </tr>            <tr height="30">            <td align="right" bgcolor="#E6E6E6">密碼</td>                <td bgcolor="#E6E6E6">                <input name="UserPass" type="password" size="15" maxlength="20" /></td>            </tr>            <tr height="30">            <td align="right" bgcolor="#E6E6E6">重複密碼</td>                <td bgcolor="#E6E6E6">                <input name="UserPass" type="password" size="15" maxlength="20" /></td>            </tr>            <tr height="30">            <td align="right" bgcolor="#E6E6E6">性別</td>                <td bgcolor="#E6E6E6">                <input name="sex" type="radio" value="男" checked="checked" />男                    <input name="sex" type="radio" value="女" />女                </td>            </tr>            <tr height="30">            <td align="right" bgcolor="#E6E6E6">愛好</td>                <td bgcolor="#E6E6E6">                <input name="like" type="checkbox" value="1" />足球                    <input name="like" type="checkbox" value="2" />籃球                    <input name="like" type="checkbox" value="3" />乒乓球                </td>            </tr>            <tr height="30">            <td align="right" bgcolor="#E6E6E6">省份</td>                <td bgcolor="#E6E6E6">                <select name="province">                    <option>陝西省</option>                        <option>山東省</option>                        <option>山西省</option>                        <option>河北省</option>                        <option>河南省</option>                        <option>湖南省</option>                        <option>湖北省</option>                        <option>黑龍江省</option>                        <option>其他</option>                   </select>                </td>            </tr>            <tr height="30">            <td align="right" bgcolor="#E6E6E6">自我介紹</td>                <td bgcolor="#E6E6E6">                <textarea name="Intro" cols="40" rows="5" id="Intro"></textarea></td>            </tr>            <tr height="30">            <td align="center" colspan="2" bgcolor="#CCCCCC">                <input type="submit" name="send" value="提交" />                    <input type="reset" name="reset" value="重設" />                </td>            </tr>        </tbody>        </table></form></body></html>






HTML——使用表格對錶單進行布局

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.