[英]Html - Random <p></p> tags appearing on Web page but not in Source Code
Essentially, I'm making a tier-based pricing grid and it needs to look like this: 本质上,我正在建立一个基于层的定价网格,它需要看起来像这样:
However, when my code is placed onto the web page (through Wordpress) a random set of 但是,当我的代码(通过Wordpress)放置在网页上时,
tags are above the '10+ Sessions" pricing box, which messes up the spacing. The 标签位于“ 10个会话以上”定价框的上方,这会弄乱间隔。
tag has a 20px top padding. 标签的顶部填充为20px。
It looks like this: 看起来像这样:
So, I inspected the element and found that there's a set of 因此,我检查了元素,发现有一组
tags above the box with a top padding of 20px. 标签上方的框,顶部填充为20px。
<div class="rpt_plan rpt_plan_ori rpt_plan_3 " style="
margin-left: 0px;
width: 565px;
margin-top: 0px;
"><p></p>
<div class="rpt_title rpt_title_3">10+ Sessions</div>
<div class="rpt_head rpt_head_3" style="
height: 152px;
"><p></p>
<div class="rpt_recurrence rpt_recurrence_3">Per Hour</div>
<div class="rpt_price rpt_price_3"><span
class="rpt_currency">£</span>20</div>
</div>
<p><a target="_self" href="#" style="background: rgb(243, 167,
6);cursor: pointer;height: 45px;" class="rpt_foot rpt_foot_3 pum-
trigger">Sign Up</a></p>
</div>
The 该
However, the tags aren't there in the original source code, which is this: 但是,原始源代码中没有这些标记,它是这样的:
<div class="rpt_plan rpt_plan_ori rpt_plan_3 " style=" margin-left: 0px; width: 565px; margin-top: 0px; "> <div class="rpt_title rpt_title_3">10+ Sessions</div> <div class="rpt_head rpt_head_3" style=" height: 152px; "> <div class="rpt_recurrence rpt_recurrence_3">Per Hour</div> <div class="rpt_price rpt_price_3"><span class="rpt_currency">£</span>20</div> </div> <p><a target="_self" href="#" style="background: rgb(243, 167, 6);cursor: pointer;height: 45px;" class="rpt_foot rpt_foot_3 pum- trigger">Sign Up</a></p></div>
I just can't figure out why the 我只是不知道为什么
tags are there. 标签在那里。
Could anyone help with this? 有人可以帮忙吗?
Thanks 谢谢
For anyone with a similar problem, install a plugin called Raw HTML for Wordpress. 对于有类似问题的任何人,请安装一个名为Raw HTML for Wordpress的插件。 This prevents Wordpress from attempting to format your Raw HTML and adding random paragraph tags.
这样可以防止Wordpress尝试格式化Raw HTML格式并添加随机段落标签。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.