div块状居中显示_html/css
来源:动视网
责编:小采
时间:2020-11-27 15:54:48
div块状居中显示_html/css
div块状居中显示_html/css_WEB-ITnose: #divbg { width: 98%; margin-left: auto; margin-right: auto; } #divbg li { float: left; background: rgb(231,231,231); width: 180px; height: 180px; font-size: 20px; list-style-type: none; cursor: hand; line-height: 40
导读div块状居中显示_html/css_WEB-ITnose: #divbg { width: 98%; margin-left: auto; margin-right: auto; } #divbg li { float: left; background: rgb(231,231,231); width: 180px; height: 180px; font-size: 20px; list-style-type: none; cursor: hand; line-height: 40

代码如上,我要的功能 八个小块居中显示 初始每行4个 窗口缩小变大 当中的小块也要居中 小块大小固定180*180 css调试了很久 愣是没调出来。。
回复讨论(解决方案)
木有人啊?????
你不觉得这样好看些吗
赞版主 楼上正解
div块状居中显示_html/css
div块状居中显示_html/css_WEB-ITnose: #divbg { width: 98%; margin-left: auto; margin-right: auto; } #divbg li { float: left; background: rgb(231,231,231); width: 180px; height: 180px; font-size: 20px; list-style-type: none; cursor: hand; line-height: 40