<div>
<img src="Images/mcdonalds.jpg" width="300px" height="180px">
</div>
<div>
<img src="Images/cilipica.jpg" width="300px" height="180px">
</div>
<div>
<img src="Images/mythay.jpg" width="300px" height="180px" >
</div>
使用
float: left
答案 0 :(得分:1)
答案 1 :(得分:0)
答案 2 :(得分:0)
试试这个
在div上添加float:left
div {
float:left
}
<div>
<img src="Images/mcdonalds.jpg" width="300px" height="180px">
</div>
<div>
<img src="Images/cilipica.jpg" width="300px" height="180px">
</div>
<div>
<img src="Images/mythay.jpg" width="300px" height="180px" >
</div>
答案 3 :(得分:0)
我希望这会有所帮助。
请参阅Fiddle
上的示例startProgress(); // handle showing progress view somehow
Picasso.with(getActivity()).load(imageUrl).fetch(new Callback() {
@Override
public void onSuccess() {
Picasso.with(getActivity()).load(imageUrl).into(imgViewMedia);
stopProgress(); // handle stopping progress view somehow
}
@Override
public void onError() {
}
});
答案 4 :(得分:0)
试试这个:
你曾经使用过多次。关闭下一个标记后,内容始终显示在下一行。
<div>
<img src="Images/mcdonalds.jpg" width="300px" height="180px">
<img src="Images/cilipica.jpg" width="300px" height="180px">
<img src="Images/mythay.jpg" width="300px" height="180px" >
</div>
答案 5 :(得分:0)
你必须使div显示为内联。在CSS下
div{
display:inline;
}
或
<div style="display:inline;">
<img src="Images/mcdonalds.jpg" width="300px" height="180px">
</div>
<div style="display:inline;">
<img src="Images/cilipica.jpg" width="300px" height="180px">
</div>
<div style="display:inline;">
<img src="Images/mythay.jpg" width="300px" height="180px" >
</div>
答案 6 :(得分:0)
div.minihalf-width{
width:30%;
float:left
}
div.minihalf-width img{
width: 100%;
}
<section>
<div class="minihalf-width">
<img src="latest-work/work-1.png" alt="">
</div>
<div class="minihalf-width">
<img src="latest-work/work-2.jpg" alt="">
</div>
<div class="minihalf-width">
<img src="latest-work/work-3.jpg" alt="">
</div>
</section>