banner图不居中怎么解决,广告banner不居中解决方法
banner图不居中怎么解决,广告banner不居中解决方法但用户的显示器可能会大点或小点.导至显示效果不居中怎么办? 在css样式中加入以下代码:
我们在做网页时.有时测式时可能是正常的.但用户的显示器可能会大点或小点.导至显示效果不居中怎么办?
在css样式中加入以下代码:
.banner .bd ul{width:100%!important;min-width:1000px;}
.banner .bd ul li{width:100%!important; background-position: center top!important; background-size: auto!important;}
例:下图在1920中显示正常
苹果电话1440里显示没有居中.明显是左对齐
版权所有:深圳市网商在线科技有限公司
友情链接: