因此,我在页脚中放置了几个框,当我使用边距移动它们时,它们会立即移动整个页脚。有人知道我做错了什么吗?
---php---
<?php wp_footer() ?>
<div id="pinkpoint">
</div>
<div id="footnav">
<div id="footernavlinks>
</div>
</div>
</body>
</html>
---两个div的css---
#footernavlinks {
clear: both;
margin:10px 0 0 25px;
width: 300px;
height: 250px;
background-image:url('http://cowgirlsbaking.com/wp-content/themes/autumn-leaves/images/footblockback.png');
}
#footnav {
background-color: #EB7CDB;
height: 500px;
width: 100%;
}
最佳答案
您应该关闭 footernavlinks div 中的引号:
<div id="footernavlinks">
</div>
关于php - 组织 Div 的 css 框模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3077251/