Home  >  Article  >  Web Front-end  >  如何让一个层左右都能去空白(简单)_html/css_WEB-ITnose

如何让一个层左右都能去空白(简单)_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:571188browse

div 层 css html

怎么让层 可以left -10px;right 又可以-10px;怎么实现完整的100%width?

回复讨论(解决方案)

里面在套个 div

外面的div 限制宽度
里面的div限制空白

不指定width  会自动计算的

Statement:
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