September 24, 2009

左右置中,中央版型大小固定

左右置中,中央版型大小固定

製作表格前置中對齊會出現DIV
先插入三列一欄表格
表格寬度設定固定(EX.850)

在第二列插入一列三欄
寬100%
左右欄個別設定寬度

PS
儲存格的設定,最好以越外面的為對象設定
ex table 和 tr td
最好依table為設定的主要依據

 
LINK
LINK
LINK
LINK
LINK

我是內文

我是內文

我是內文

我是內文

我是內文

我是內文

 
 



語法筆記本

<!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>
<div align="center">
  <table width="850" border="1" cellpadding="10">
    <tr>
      <td height="200" bgcolor="#000033">&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#D6E4F3"><table width="100%" border="1" cellpadding="10">
        <tr>
          <td width="200" valign="top" bgcolor="#0033CC"><table width="200" border="0" cellspacing="2" cellpadding="6">
            <tr>
              <td>LINK</td>
            </tr>
            <tr>
              <td bgcolor="#006699">LINK</td>
            </tr>
            <tr>
              <td>LINK</td>
            </tr>
            <tr>
              <td bgcolor="#006699">LINK</td>
            </tr>
            <tr>
              <td>LINK</td>
            </tr>
          </table>
            </td>
          <td valign="top"><p>我是內文</p>
            <p>我是內文</p>
            <p>我是內文</p>
            <p>我是內文</p>
            <p>我是內文</p>
            <p>我是內文<br />
              </p></td>
          <td width="200" bgcolor="#006699">&nbsp;</td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td height="100" bgcolor="#666666">&nbsp;</td>
    </tr>
  </table>
</div>
</body>
</html>

0推薦此文章
Today's Visitors: 0 Total Visitors: 50
Personal Category: 程式語法筆記本 Topic: creation / design / graphic design
歷史上的今天:

誰來收藏
Loading ...
unlog_NVPO 0