img[title~="Figure"]{ float: left; border: 1px solid gray;}img.i1{ float: left; clear: both;}img.i2{ float: left; clear: both;}可以应用样式
回复讨论(解决方案)
hr要清楚浮动,要不会会一起浮动
hr要清楚浮动,要不会会一起浮动
我只是对img那里设置了浮动啊?为什么会影响到 呢?
hr要清楚浮动,要不会会一起浮动
你看 我按照你的改了之后 虽然线是下来了 但是它跟上面的两幅图合并起了 我想要的是这种效果
空白边和浮动元素叠加了,另外用个元素来清楚浮动
img[title~="Figure"]{ float: left; border: 1px solid gray;}img.i1{ float: left; clear: both;}img.i2{ float: left; clear: both;}可以应用样式
查看更多关于为什么我添加的那条线跑到顶端去了_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did112784