有七个不同大小的图像,我想将所有图像放在大图像下面。任何人都可以帮我解决这个问题吗?
.imagelist img{
width: 100px;
border: 2px solid black;
font-size: 0;
}
<div class="wrapper">
<img src="images/wide.jpg" width="100%" alt="wide-image">
</div>
<div class="imagelist">
<img src="images/a.jpg" width="100px;">
<img src="images/b.jpg" width="100px;">
<img src="images/c.jpg" width="100px;">
<img src="images/d.jpg" width="100px; height:90px;">
<img src="images/e.jpg" width="100px;">
<img src="images/f.jpg" width="100px;">
<img src="images/g.jpg" width="100px;">
</div>
答案 0 :(得分:1)
您可以使用以下解决方案:
DECLARE @Data TABLE (...) -- Define table to match results of stored proc
INSERT @Data
EXEC dbo.spMML_GET_ORDERS_FOR_EXPORT
SELECT * FROM @Data FOR xml path ('Get_Order'),ROOT ('Get_Orders')
&#13;
.imagelist img {
float:left;
width:calc(100% / 7 - 4px);
border:2px solid black;
font-size:0;
}
.imagelist {
clear:both;
}
&#13;