Home >Web Front-end >HTML Tutorial >?丝求助个CSS问题_html/css_WEB-ITnose

?丝求助个CSS问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:39:50821browse

本帖最后由 hxr009 于 2012-11-30 18:53:13 编辑

这个页面是做瀑布流效果 可是DIV框会重叠在一起 如何拉开隔出间距

 如图



网址: www.wenpic.com

回复讨论(解决方案)

<!DOCTYPE html><html><head><style>#page {background:red;width:200px;margin-right:auto;margin-left:auto;}#d1 {height:100px;background:green;}#d2 {height:100px;margin-top:50px;background:black;}</style></head><body><div id="page"><div id="d1">1</div><div id="d2">2</div></div></body></html>

XML/HTML code??12345678910111213141516nbsp;html>

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