div块问题?

来源:百度知道 编辑:UC知道 时间:2024/06/04 18:23:25
请问怎样控制下面这段代码中‘向上’‘向下’连接文字在块内的位置?(请提供代码说明,谢谢。)
代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>块内容互换</title>
</head>

<body>
<div id='myDiv'>
<div style='width:400px;height:100px;background-color:#FF0000'>
</div>
<div style='width:400px;height:100px;background-color:#FFFF00'>
<div>你好,第二个<a href="http://zjc.ncu.cn/fws">x</a></div>
</div>
<div style='width:400px;height:100px;background-color:#0099FF'>
第三个
</div>
<div style='width:400px;height:100px;background-color:#9900FF'>
四个
</div>
<div style='width:400px;height:100px;background-color:#9966FF'

<div style='width:400px;height:100px;background-color:#9966FF'>
第五个 <DIV style="PADDING-TOP:15PX;"><a href="http://zjc.ncu.cn/fws">x</a></DIV>
</div>

没明白什么意思,如果只是文字位置可以在里面多套个层。如上

顺便说下你这个JS效果只在IE下好用 重新写吧 写的怪乱的。