gpt4 book ai didi

html - 奇怪的列表行为

转载 作者:行者123 更新时间:2023-11-28 15:55:40 25 4
gpt4 key购买 nike

我有一个包含段落的列表,但它在 Firefox 和 IE 中显示得很奇怪。

我的 HTML 是这样设置的:

<li><p>content</p></li>

不奇怪吧?该段落没有分配宽度和一点(左)边距。当边距被移除时,它看起来仍然一样。当我将 list-style-position 改回 outside 时,它也没有改变...

它是这样的:

the list

有人熟悉这个问题并知道解决方法吗?我很绝望。

最佳答案

这样写:

p{
margin:0;
padding:0;
}

关于html - 奇怪的列表行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8185492/

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