浏览器兼容问题 html, body { margin:0px auto 0px auto; padding:0px auto 0px auto;}我这样写 想让页面布局居中 但是为什么IE里面可以 火狐不行 请问怎么改才能让两个浏览器都支持呢居中效果呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 body{TEXT-ALIGN: center;}#center{position:absolute;margin:-100px 0 0 -200px; height:200px;width:400px;background:#F00;top:50%;left:50%;}</style></head><body><div id="center"></div> <style type="text/css"> div,table { margin:auto; } </style>FF不指定是靠左面。IE是居中。 body{margin:auto;width:778px;}<div style="background-color:#ccc;height:1000px"> </div> html,body{margin:0px;padding:0px;}<div style="margin:0px auto;width:1024px"></div> datalist的问题 confim和连接问题 [急]滚动问题 owc另一些使用 .NET普通问题看你会几个! gridview 里模板列里textbox 当textchanged触发gridview什么事件? owc11 折线图如何加标注 ASP.NET DataGrid控件怎样显示其它值? 如何将web项目和windows项目做成一个安装程序?急! 有关DATAGRID中的DROPDOWNLIST问题 asp.net和ajax的书籍 求教各位高手,我和程序中出现“未将对象引用设置到对象的实例”如何解决?
#center{
position:absolute;
margin:-100px 0 0 -200px;
height:200px;
width:400px;
background:#F00;
top:50%;
left:50%;
}
</style>
</head>
<body>
<div id="center"></div>
div,table { margin:auto; }
</style>FF不指定是靠左面。IE是居中。
</div>
<div style="margin:0px auto;width:1024px"></div>