您好,我正在使用 Wordpress,
我的容器和图像标题有一些问题。
无论我尝试做什么,图像标题似乎都是重叠的。
我已经试过了:
.entry-content .wp-caption {
/* border: 1px solid #E0E0E0; */
/* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);*/
-ms-box-sizing: border-box;
-moz-box-sizing: border-box;
/* -webkit-box-sizing: border-box;*/
box-sizing: border-box;
/* margin: 5px 0 30px 0;*/
max-width: 100%;
padding: 8px;
text-align: center;
}
但我仍然认为是容器。
谢谢。
最佳答案
您好,所有问题都来自样式 float:left
在 float: left
之后你必须 clear:both
在这个分区
<div class="symple-box blue none " style="text-align:left; width:100%;">
</div>
添加这个
<div class="clear"></div>
像这样的例子
<div class="symple-box blue none " style="text-align:left; width:100%;">
your code
<div class="clear"></div>
</div>
这在CSS中
.clear {
clear: Both;
margin: 0;
padding: 0;
width: 0;
height: 0;
}
关于html - 容器不随内容流动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19445569/