gpt4 book ai didi

html - 正在创建附加段落

转载 作者:太空宇宙 更新时间:2023-11-03 23:51:56 24 4
gpt4 key购买 nike

当我尝试运行这段代码时,我看到在每个段落之后插入了额外的段落。我如何清除这些段落或为什么我会看到它?

<html>
<style>
/* The margin set from - top, right, bottom, left*/
p {
margin:.5cm 1cm 1cm 1cm;
text-decoration:underline;
border-style:solid;
border-color:red;
}


</style>
<body>
<p>This is the First paragraph,This is the First paragraph,This is the First paragraph,This is the First paragraph,This is the First paragraph,This is the First paragraph<p>
<p>This is the Second paragraph<p>
<p>This is the Third paragraph<p>


</body>
</html>

http://jsfiddle.net/xvF85/

最佳答案

你需要正确地结束你的段落

<html>
<style>
/* The margin set from - top, right, bottom, left*/
p {
margin:.5cm 1cm 1cm 1cm;
text-decoration:underline;
border-style:solid;
border-color:red;
}


</style>
<body>
<p>This is the First paragraph,This is the First paragraph,This is the First paragraph,This is the First paragraph,This is the First paragraph,This is the First paragraph</p>
<p>This is the Second paragraph</p>
<p>This is the Third paragraph</p>


</body>
</html>

几乎所有的html标签都是以>开头,以结尾

关于html - 正在创建附加段落,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19748319/

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