请问这个网页中图片间距怎么固定,鼠标放小图上显示的图片可以帮我居中不,谢谢啦

来源:百度知道 编辑:UC知道 时间:2024/05/15 03:26:14
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
--></style><style type="text/css">
<!--
a {position:static;/*设置其定位方法为相对定位,等一下内部信息面板就可以相对它定位*/
/*display:block;让链接以块状呈现,这样不用点中链接文字就可以响应链接*/}
a div {display: none;/*初始化信息面板不显示*/}
a:hover {background:#fff;}/*IE7以下版本A状态伪类bug*/
a:hover div {
position: absolute;
padding:1px;
display:block;
left:30px;/*这是相对父级A的定位*/
top: 8px;
border: 1px solid rgb(91,185,233);
background-color: #ffffff;
z-index:999;/*把信息面板提到一个较高的位置,使链接文字过长时不会与面板重叠,但这只对FF有效*/}
.STYLE8 {color: #666666}
--></style><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td align="center" valign="middle"><a href="#&quo

1.你是想把网页居中吧,给它一个body样式,如下:
body{width:960px; margin-right: auto;margin-left: auto;}
其中网页的宽度是必须要给的,否则后面的代码就没用了.

2.你想给网页做有立体感、漂亮的颜色,那就要看你的设计功底了。