在没有Blogger自动更正的情况下编写额外的 div>标记

时间:2021-11-17 07:19:00

I found a code for a Top Commentators Blogger widget online, and it's perfect for my needs. The problem is, it seems the code lacks a </div> tag. This way, it messes up the code of everything below it on my Blogger (following widgets gets nested inside it, for eg.).

我在网上找到了Top Commentators Blogger小部件的代码,它非常适合我的需求。问题是,似乎代码缺少 标签。这样,它会在我的Blogger上弄乱它下面的所有内容的代码(以下小部件嵌套在其中,例如。)。

The widget's code is written in encrypted js (?), so I can't change it. So I decided to add the missing </div> tag manually, on the widget content. But Blogger magical autocorrection of HTML thinks it's just some extra wrong code and erases it. I've tried writing it with js and innerHTML too, but Blogger still erases it.

小部件的代码是用加密的js(?)编写的,所以我无法改变它。所以我决定在小部件内容上手动添加缺少的 标记。但Blogger对HTML的神奇自动更正认为它只是一些额外的错误代码并将其删除。我也试过用js和innerHTML编写它,但是Blogger仍然会删除它。

Any suggestions on how to add this </div> without it getting removed?

有关如何添加此 而不删除它的任何建议?

The widget can be seen live (and working wrongly, nesting the Archive inside it) at the bottom of my page: www.comoeurealmente.com

在我的页面底部可以看到小部件(并且工作错误,将Archive嵌入其中):www.comoeurealmente.com

1 个解决方案

#1


0  

Doesn't seem like the </div> tag is missing to me. It seems that your css is indenting the archive with .footer and .widget having a padding of 25px. change that padding to 0px and the page displays correctly.

似乎我不想删除 标签。看来你的css正在用.footer和.widget缩进存档,填充量为25px。将该填充更改为0px并正确显示页面。

#1


0  

Doesn't seem like the </div> tag is missing to me. It seems that your css is indenting the archive with .footer and .widget having a padding of 25px. change that padding to 0px and the page displays correctly.

似乎我不想删除 标签。看来你的css正在用.footer和.widget缩进存档,填充量为25px。将该填充更改为0px并正确显示页面。