HTML 元素在一个或另一个中连续为 "nesting"

标签 html css templates nested blogger

我在 blogger.com 平台上有我的个人风格博客 http://fashionsanja.blogspot.rs而且我平均擅长编码。我的博客文章存在很大问题,您可以通过上面的链接访问它清楚地看到这一点。在 blogger 帮助论坛 中,我得到了问题“名称”和临时解决方案,但不是完整的答案。问题是我的HTML 元素不断地“嵌套”在每篇博文显示时。我在 HTML 方面不够专业,无法单独解决这个问题,我需要你的帮助。

我将引用我从 Google 帮助论坛获得的回复:

Your custom Blogger template is pretty much unique due to your custom implementation. The reasons are, at Homepage/index pages, you are allowing your Post HTML elements to display itself inside another Post HTML -- we call it "nesting".

When this happens, it is pretty hard to add & target specific CSS rules as your post HTML elements is continuosly "nesting" within one or the orther as each Posts is displayed.

Below is a temporary workaround until you find (and fix) your Post display "nesting" issues.

Go to Theme > Customize > Advanced > Add CSS ....

.post .post-outer { margin-bottom: 45px; }

Click Apply to Blog

Again, if you have trouble with coding, I strongly suggest for your to send in your coding issues at stackoverflow.com or Blogger Developer Group where experts there can further assist you. The above could start your conversations there.

Custom Blogger themes to your extent is not supported in Blogger Help forums due to errors and unknown implementations -- even though you are using any default Blogger themes.

This is because we do not have a clue on how you customized your theme as it shows why it is quite difficult to add CSS to re-style your post elements according to your preference.

最佳答案

转到主题> 自定义> 高级> 添加CSS

.post-labels {
    display: block;
    margin: 30px 0 10px;
}
.post-footer-line {
    margin: 25px 0;
}
.post-header { 
   margin: 0 0 0 0; 
}

点击应用到博客

关于HTML 元素在一个或另一个中连续为 "nesting",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48389092/

相关文章:

URL 中的 HTML 基本身份验证

html - CSS递归悬停在所有子元素上

html - 带有 float : left 的 div 布局

javascript - 将 css 文件打包为 JavaScript 字符串的工具

javascript - 仅当影子 DOM 宿主元素是最后一个子元素时,如何选择它?

html - 左右边缘的插图框阴影褪色/透明

c++ - 可变参数增强绑定(bind)类型解析

html - 如何在wordpress中将文本环绕在左侧 float 图像周围

c++ - 将除字符串以外的所有类型按值传递给模板函数

c++ - 我可以写一些像 make_tuple 那样使用类型推导的东西吗?