Home > Web Front-end > HTML Tutorial > 页面变小div颜色不填满_html/css_WEB-ITnose

页面变小div颜色不填满_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:13:07
Original
1043 people have browsed it

.dhang{	height: 25px;	padding: 3px 0;	padding-top: 0px;	border: 1px solid #FFFFFF;	background: #66CCCC;	margin-bottom: 15px;	display: block;	overflow: hidden;	width:100% auto;}
Copy after login

页面最大化可以完全显示,页面变小出现滚动条,右边的颜色就不填满了(蓝色)!求教!粉色是固定宽度

页面最大化可以完全显示,页面变小出现滚动条,右边的颜色就不填满了(蓝色)!求教!粉色是固定宽度


回复讨论(解决方案)

width:100% auto;

不要  

width:100% auto;

不要  


我看你其他的网站/好像这个 现象都有!!

搞定了,固定~ 设置最小宽度!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template