css+div基本知识;

1、居中:

<div class="test"></div>
css:

    .test{
         margin: 0 auto;       //一行中居中;
    }        

 2、IE与其他浏览器兼容性处理;

!important可以用来处理不同浏览器显示效果不同;

原文地址:https://www.cnblogs.com/yinwei-space/p/10064525.html