调整大小时,当窗口小于div 时,不会显示右边距。知道如何解决它吗?
例:
<div style="width:100%;max-width:500px;background-color:red;margin:0 30px 0 30px;">TEST</div>
请删除宽度 100% 或将其设置为自动。
<div style="width:auto;max-width:500px;background-color:red;margin:0 30px 0 30px;">TEST</div>