table明明設定了固定值,table設定固定值

來源:互聯網
上載者:User

table明明設定了固定值,table設定固定值

IE真的快把我搞死了 0.0

可愛的迷人的讓人醉了的IE你真棒


今天用表格寫一個4列的表格 要實現的效果大概是這樣的

確實用普通瀏覽器都沒有問題 很簡單明了的一個表格嘛!用IE8以下的看就成這樣子了

是不是醉了 讓我無從下手 後來知道 原來 要這樣寫!


<table width="100%"   style="table-layout:fixed;">


.wd-table{width:99%; border-width:thin; border-collapse:collapse; color:#505051; color: #333;  font-size:12px; }.wd_td ,.wd_th{ padding:8px;}.wd_tr{ height:42px; }.wd_th{ text-align:right; width:120px; background:#F3F3F4; padding-right:3px;font-weight: bold;} 

<table class="wd-table" width="100%"   style="table-layout:fixed;">       <tr class="wd_tr">    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>  </tr>  <tr class="wd_tr">    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>  </tr>  <tr class="wd_tr">    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>  </tr>  <tr class="wd_tr">    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>    <td class="wd_th">職崗描述:</td>    <td class="wd_td">不限</td>  </tr>    <tr class="wd_tr">    <td class="wd_th">職崗描述:</td>    <td colspan="3" class="wd_td">崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗</td>    </tr>  <tr class="wd_tr">    <td class="wd_th">職崗描述:</td>    <td colspan="3" class="wd_td">崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗崗</td>    </tr></table>

我的部落格 點擊送我溫暖哦~ 猿媛員~~~~·



html,table的行屬性已經設定了固定寬度,可當輸入一大串數字時,那一行會被拖得特別長,問怎處理?

<td style="overflow:hidden;"></td>
 
table 中的div,怎將div 固定在table 中?

  你好!用了div就不需要用table來定位了啊。如果你外圍用了table,那div直接定在了儲存格TD裡了啊,我不知你是這個意思,如果是這個意思的話,那你直接用DIV換上就OK了,不需要什麼複雜的CSS來做修辭,不知你明白我意思沒。
  根據樓上你的追回,你要用捲軸,那你直接在DIV裡加不就得了嗎。
  希望我的回答能令你滿意!
 

聯繫我們

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