我想创建我自己的博客模板。我想在三栏上有帖子。我试图在帖子组件上浮动广告,但它会产生错误。创建一个三柱博客模板
我的博客使用float:https://words-deep-water.blogspot.fr/
的代码是在这里:https://words-deep-water.blogspot.fr/2017/03/version1.html
你能帮助我吗?
我想创建我自己的博客模板。我想在三栏上有帖子。我试图在帖子组件上浮动广告,但它会产生错误。创建一个三柱博客模板
我的博客使用float:https://words-deep-water.blogspot.fr/
的代码是在这里:https://words-deep-water.blogspot.fr/2017/03/version1.html
你能帮助我吗?
没有太多了解从链接你posted.But如果你正在寻找划分一行到3分等于列显示的职位,你可能想看看这个:
http://materializecss.com/grid.html。
<style>
.row {width : 100%}
.col s4 {width : 33.33%}
</style>
<div class="row">
<div class="col s4">This div takes 33.33% width of the outer div. POST 1</div>
<div class="col s4">This div takes 33.33% width of the outer div. POST 2</div>
<div class="col s4">This div takes 33.33% width of the outer div.POST 3</div>
</div>
使用类似于上面的代码,您可能能够实现您的功能。 代码解释:我们有一个div类,它使得它的宽度达到100%。而它内部的所有内部div将占用外部div的33.33%宽度,给我们三个等宽的div。
如果这有帮助,请接受这个答案。如果您有任何疑问,请在下面的评论中告诉我。
最好尝试使用3列敏感博主模板。有许多免费的响应模板可供博客用户使用。如果您添加了额外的样式代码,则可能会影响移动用户。
@Adrien - 它工作吗? –