1、居中: <div class="test"></div>css: .test{ margin: auto; //一行中居中; } 2、IE与其他浏览器兼容性处理; !important可以用来处理不同浏览器显示效果不同;