HTML--Table布局

 1 <DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta http-equiv="Content-Type" Content="text/html" charset="utf-8"/>
 5         <title>table布局</title>
 6     </head>
 7     <body>
 8         <table border="0" width="800px">
 9             <tr>
10                 <td colspan="2" style="background-color:#99bbbb">
11                     <h1>Main Title of The web page</h1>
12                 </td>
13             </tr>
14             <tr valign="top" >
15                 <td style="background-color:#ffff99;width:300px; height:400px;text-align:top;">
16                     HTML<br/>
17                     CSS<br/>
18                     JavaScript<br/>
19                     Jquery<br/>
20                 </td>
21                 <td style="background-color:#EE8888;text-align:top;width:500px;height:300px;">Content Goes here</td>
22             </tr>
23             <tr>
24                 <td colspan="2" style="text-align:center; background-color:#CCCCCC">CopyRight W3CSchool.com.cn</td>
25             </tr>
26         </table>
27     </body>
28 </html>

效果图:

转载于:https://www.cnblogs.com/caofangsheng/p/4620559.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值