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

WBOY
Release: 2016-06-24 12:24:57
Original
1187 people have browsed it

div 层 css html

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

回复讨论(解决方案)

里面在套个 div

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

不指定width  会自动计算的

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!