<html>有什么办法控制页面上下分栏

<html>有什么办法控制页面上下分栏,第1张

<style>

.top{

    width:100%

    height:200px

    background:red

    }

.left,.right{

    border:1px solid green

    float:left

    height:200px

    width:50%

    }

</style>

<div class="top">top</div>

<div class="left">left</div>

<div class="right">right</div>

一个div在上面。两个在下面不就行了。。

宽高背景色都可以改。

<html>

<body>

<table border="0" width="100%" cellpadding="10">

<tr>

<td width="50%" valign="top">

This is some text. This is some text. This is some text. This is some text. This is some

text.

</td>

<td width="50%" valign="top">

Another text. Another text. Another text. Another text. Another text. Another text. Another

text.

</td>

</tr>

</table>

<table border="0" width="100%" cellpadding="10">

<tr>

<td width="50%" valign="top">

This is some text. This is some text. This is some text. This is some text. This is some

text.

</td>

<td width="50%" valign="top">

Another text. Another text. Another text. Another text. Another text. Another text. Another

text.

</td>

</tr>

</table>

</body>

</html>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/7567158.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-07
下一篇 2023-04-07

发表评论

登录后才能评论

评论列表(0条)

保存