运行 ❯
获取您的
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> body { background-color:#E7E9EB; } #myDIV { height:300px; background-color:#FFFFFF; } .bluediv { width:200px; background-color:lightblue; min-width: 400px; } </style> </head> <body> <h1>The min-width property</h1> <div id="myDIV"> <div class="bluediv"> See this blue div element with different min-width values. The width property is set to 200px. If min-width is larger that width (200px), then the min-wdth overrides the width property. </div> </div> </body> </html>