div居中显示的css样式代码
发布时间:2016-12-27 来源:查字典编辑
摘要:html*{margin:0;padding:0;}body{font-family:Geneva,Arial,Helvetica,sans...
<style type="text/css">
html * {margin:0; padding:0;}
body {font-family:Geneva, Arial, Helvetica, sans-serif; font-size:12px; color:#000000; background-color:#FFFFFF;}
/* 让内容垂直居中的控制样式在下面这一行 */
#PageMain{width:1002px; height:602px; background-color:#0E4980; margin:0 auto; position:absolute; top:50%; left:50%; margin:-301px 0 0 -501px;}
</style>
<>
<div id="PageMain">
</div>
<>
$("#按钮的id").attr("disabled","true"); 按钮就不能再点击了!
<li onMouseOver="this.style.background='#ffffff'" onMouseOut="this.style.background='#ececec'">第1行第1列</li>