html - 画廊图像的 float

标签 html css gallery

this gallery最后一张图片应该向左浮动,但它位于中间。代码有什么问题?

This is the whole code CSS .

This is the whole code HTML .

HTML:

<div class="text-block7" > <a href="gal/60.png" class="gal2" rel="gal"><img src="gal/thumb/60.png" alt=""></a> </div>

CSS:

#rightcolumn-12 .text-block7 { width: 239px; height: 190px; display: block; float: left; margin-top: 0px; margin-bottom: 15px;}

最佳答案

在第 7 个 div block 之前添加:

<div style="clear:left"></div>

关于html - 画廊图像的 float ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17167630/

相关文章:

html - 如何在 css 和 html 中将图像的阴影放在其下方的另一个图像上?

javascript - Material-UI 和 React - 将 &lt;input&gt; 更改为 <TextField> 会阻止表单提交工作?

html - 使用 bootstrap css 时如何将按钮置于文本下方?

html - css 定位表格彼此相邻

html - 如何修复意外的背景溢出

JavaScript document.write 不像 PHP echo 那样工作

java - 如何从图库中删除视频?

android - 将多个 Admob 广告预加载到数组中?

javascript - 在链接上呈现数据单击不同的选项卡

Android - 根据设备分辨率调整图库中图像的大小