php - 组织 Div 的 css 框模型

标签 php html css wordpress

因此,我在页脚中放置了几个框,当我使用边距移动它们时,它们会立即移动整个页脚。有人知道我做错了什么吗?

网址:http://cowgirlsbaking.com/

---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/

相关文章:

php - 在服务器重启期间,使用 MySQL 查询运行的 PHP 脚本会发生什么情况?

php - WAMP 中的 LDAP TLS_REQCERT

php - 没有从数据库返回属性?

html/css 页眉和页脚没有填满整个空间

html - bootstrap 如何防止视点低于 768px 时侧边栏折叠或消失

html - CSS/HTML : How would I make these images horizontally-aligned?

php - while 循环中信息重复

html - 无法在 Web 应用程序中加载静态内容(图像/JS)

css - 在 wordpress 站点中带有内部按钮的输入字段

html - 是否可以在图片的边缘制作撕纸效果?