css+div基本知识;

时间:2018-12-04 16:47:31   收藏:0   阅读:148

1、居中:

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

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

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

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

 

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!