用table表格來調整控制項的格式,table表格控制項格式

來源:互聯網
上載者:User

用table表格來調整控制項的格式,table表格控制項格式

因為想自己寫一個web,所以也在學習html語言的一些東西,讓我回想起了大學時代曾對網頁設計產生過興趣,無奈那時候還沒有自己的電腦,還常去網吧買個磁碟片下載一些圖片,然後用fontpage做一些網頁.後來買了電腦,則一直被"傳奇"迷的一塌糊塗,也把網頁設計給拋到腦後了....


由於是在ubuntu下面工作,而linux底下的所見即所得 (WYSIWYG)的網頁設計真是少的可憐.最後選擇了bluefish.

想做一個添加裝置的表單,結果因為首碼大小不一樣,所以很難看.:

<!DOCTYPE html>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><html><body>使用者名稱:<input type="text" name="username"><br/>密碼:<input type="password" name="password"></body></html>



這個輸入框沒有對齊啊,我心裡那個難過啊,這時候邊上的同事說可以用表格來格式化一下,請教後代碼如下:

<!DOCTYPE html>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><html><body><table>    <tr>        <td>使用者名稱:</td>        <td><input type="text" name="username"><br/></td>    </tr>    <tr>        <td>密碼:</td>        <td><input type="password" name="password"></td>    </tr></table></body></html>

啊哈,新技能get,感謝童竣同學大力支援~~

還教了我如何使用css來控製表格的格式

<style type="text/css">table{border-top:#000 solid 1px; border-left:#000 solid 1px;}td{ border-bottom:#000 solid 1px; border-right:#000 solid 1px;}</style>



aspnet中html的table控制項怎調整大小

<table style="width:100px;height:200px;>
或
<style>
.tb{width:100px;height:200px;}
</style>
<table class="tb">

如果要動態調整大小就寫JS:
<table id="tb">

<script>
function test(){
document.getElementById("tb").style.width="100px";
document.getElementById("tb").style.height="200px";
}
</script>
 
為何我拖入table控制項以後沒顯示表格 只顯示### 解決了 加分

這個是預設內容 需要添加行或編輯漢字
<asp:Table ID="Table1" runat="server">
<asp:TableFooterRow><asp:TableCell>1111111111111</asp:TableCell></asp:TableFooterRow>
</asp:Table>
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.