当前位置:首页 > 设计在线 > 网页设计 > CSS/Xhtml > 解决Flash 在Div中无法居中

解决Flash 在Div中无法居中

点击次数:33 次 发布日期:2008-11-21 16:04:15 作者:源代码网
源代码网推荐

源代码网整理以下

以下为引用的内容:
<style>
/* -----页面统一设置----- */
html,body{ margin:0px; padding:0px; background:url(images/boydBg.gif) repeat-x;}
img{ border:0px; }

源代码网整理以下/* -----开始顶部统一设置----- */
#head{ width:1000px; height:364px; text-align:center; }            
#logo{ height:110px; background-color:#0099CC; background:url(images/home01.jpg) repeat-x; text-align:right; padding-right:420px;}
#nav{ height:54px;}
#banner{ width:950px; height:200px; text-align:center;}
/* -----顶部设置完毕----- */

源代码网整理以下</style>
</head>

源代码网整理以下<body>
<!-- 顶部开布局 -->
<div id="head">
    <div id="banner"><iframe marginwidth="0" marginheight="0" src="images/banner.swf" frameborder="0" width="950" scrolling="No" height="200"></iframe></div>
</div>

源代码网整理以下#banner{margin:0 auto;}  -----用这个动画是距中了

源代码网整理以下#head{margin:0 auto;}  ------用这个整个页面都距中啦~~

源代码网整理以下最后我加上了~~嘿嘿~~
 

源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华