纯CSS实现支持IE6的min-width
.min_width { min-width: 500px; /* For good browsers */ } * html .min_width { padding: 0 250px; } /* This is for the markup that only appears in IE6 thanks to conditional comments */ .min_width .min_width_inner { width: 100%; /* gives the element hasLayout */ } .min_width .min_width_container { margin: 0 -250px; position: relative; /* Fixes negative margin bug */ float: left; }