gpt4 book ai didi

css - 响应式设计中的标题。

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:43:20 25 4
gpt4 key购买 nike

我的网站有 5 个部分和 5 个标题

<section>
<h1>this is the header</h1>
</section>

当响应式样式集启动时,设计师添加了一个部分标题,逻辑上现在应该是 h1。

<section>
<h2>this is the NEW section header for mobile</h2>
<h1>this is the header</h1>
</section>

现在这显然是错误的,因为 h2 继续 h1。这是我目前的解决方案,但似乎也是错误的。

<section>
<div class="section-header">this is the NEW section header for mobile</div>
<h1>this is the header</h1>
</section>

这里的最佳实践是什么。

最佳答案

最终我认为这是一个合理的解决方案

<section>
<div class="section-header">this is the NEW section header for mobile</div>
<h1>this is the header</h1>
</section>

关于css - 响应式设计中的标题。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38772140/

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