Re: [問題] dreamweaver 表格的問題
在原始碼最上面加這行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
(用DW編網頁應該預設就有加了)
在head裡用CSS設定
<style type="text/css">
table { border-collapse: collapse;}
</style>
或是在table標籤裡用style屬性設定,像這樣:
<table style="border-collapse:collapse;" >
CSS算是目前網頁美工主流,可以找書看搭配上網查資料好好學一學。
DW裡也有設定樣式表的功能,但我對它不太熟XD
看過你的網頁了 你td指定了太寬的width 內容和邊框間自然就會留白了
還有form也夾錯了,你這樣寫不會有作用的,
id、password和button都要在同一個form裡才行@@
把紅色碼拿掉 放到綠色碼
<form id="form1" name="form1" method="post" action="">
<table align="right" cellpadding="0" cellspacing="0" class="style2">
<tr>
<td width="47" nowrap="nowrap"><p>帳號</p>
<p>密碼</p></td>
<td width="95" align="left" nowrap="nowrap"><form id="form1"
name="form1" method="post" action="">
<label>
<input name="id" type="text" class="style1" id="id" size="10" />
<br />
<input name="password" type="text" class="style1" id="password"
size="10" />
</label>
</form> </td>
</tr>
<tr>
<td nowrap="nowrap"> </td>
<td width="95" align="left" nowrap="nowrap"><form id="form2"
name="form2" method="post" action="">
</form> </td>
</tr>
<tr>
<td colspan="2" nowrap="nowrap"><form id="form3" name="form3"
method="post" action="">
<div align="center">
<input type="submit" name="button" id="button" value="送出" />
</div>
</form> </td>
</tr>
<table>
</form>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.37.177.155
※ 編輯: liuyyss 來自: 114.37.177.155 (03/18 23:14)
※ 編輯: liuyyss 來自: 114.37.177.155 (03/19 00:18)
※ 編輯: liuyyss 來自: 114.37.177.155 (03/19 00:23)
※ 編輯: liuyyss 來自: 114.37.177.155 (03/19 00:24)
→
03/19 00:25, , 1F
03/19 00:25, 1F
→
03/19 00:27, , 2F
03/19 00:27, 2F
→
03/19 00:28, , 3F
03/19 00:28, 3F
→
03/19 00:30, , 4F
03/19 00:30, 4F
推
03/19 01:30, , 5F
03/19 01:30, 5F
推
03/19 13:49, , 6F
03/19 13:49, 6F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):