网页居中

来源:百度知道 编辑:UC知道 时间:2024/05/16 20:10:11
我是新手.
我放在表格里的flash不会居中,也不在表格里,希望大家指教,代码如下:
<html>
<head>
<title>888999</title>
</head>
<body bgcolor="9B9B9B" TEXT="White" LINK="Silver"

VLINK="Silver">
<table cellSpacing=0 cellPadding=0 width=780

align="center" border=0>
<capyion align="center"><img src="hy .bmp"></caption>
<tr align="center"><td valign=top>
<embed src="tiao.swf"; align="top" width="800" height="600"

quality="high" wmode="transparent" align="center"

style="position: absolute; left:0; top:0"></td></tr>
</table>
</body>
</html>

那是因为你设置了这个:
style="position: absolute; left:0; top:0"
把上面这些去掉就OK了,你把flash设定了坐标,就不会按表格规定的位置显示了!

embed没有居中属性,如果想居中,用div
如果不愿意用div用下面这个也可以!
<center>
<embed src="1.mp3" align="A" width="500" height="400" autostart="true" loop="true"></embed>
</center>
同时img等也没有居中属性。