gpt4 book ai didi

HTML5 节页脚继承页脚样式

转载 作者:太空宇宙 更新时间:2023-11-04 14:59:06 24 4
gpt4 key购买 nike

我是第一次用 HTML5 构建 WEB,遇到了一些小问题。

我有代码:

<header></header>

<section>
<header></header>
<article></article>
<footer></footer>
</section>

<footer></footer>

问题是,我的部分页脚继承了我的页脚样式。我不知道如何从我的代码中删除继承。你能帮帮我吗?

P.S.:我的节页脚继承了页脚样式,而不是页脚。有一张照片:link to photo

最佳答案

Andrew 是对的,只需为页脚添加一个类或制作样式:'section > footer{}' 或 'body > footer{}'

关于HTML5 节页脚继承页脚样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16642932/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com