-1
A
回答
0
将图像放入容器中,然后应用position: absolute
。
.wrapper {
position: relative;
width: 1024px;
}
.container {
margin: 0 auto;
width: 600px;
height: 300px;
background-color: #ccc;
}
.left, .right {
position: absolute;
width: 200px;
text-align: center;
}
.left {
top: 0;
left: 0;
}
.right {
top: 0;
right: 0;
}
<div class="wrapper">
<div class="left">
<img src="http://placehold.it/100">
<img src="http://placehold.it/120">
</div>
<div class="container">Main content</div>
<div class="right">
<img src="http://placehold.it/50">
<img src="http://placehold.it/150">
</div>
</div>
+1
得到我需要的提示,thx。 – JUG
0
您可以使用浮动列在网格系统,例如Twitter的引导或基金会。然后你可以使它响应。我建议粉底:http://foundation.zurb.com/sites/docs/grid.html
相关问题
- 1. 如何使图像内容覆盖图显示在图像上?
- 2. 如何在内容没有图像时显示图像并在显示图像时显示图像
- 3. 如何在图像显示时显示某些内容?
- 4. 如何在WordPress中显示像这样的图像内容?
- 5. 如何在显示内容之前显示内容图像不加载的隐藏内容?
- 6. 在图像上显示li内容
- 7. 显示图像右侧
- 8. 如何比较使用sikuli的两个图像的内容?
- 9. 显示图像的CSS内容
- 10. 如何在使用iAd时显示视图的内容
- 11. 我如何设计使用4corner图像,4行图像和内容div在图像中显示的div
- 12. dc.js:如何在单个折线图的两侧显示y轴?
- 13. 如何在加载标签内容时显示加载图像?
- 14. 如何淡出图像的两侧?
- 15. 侧边栏显示以下内容
- 16. WordPress侧边栏显示内容下面
- 17. 如何使用RichTextBox显示html内容?
- 18. 如何在图像的右侧显示输入标签
- 19. 显示图像,直到内容加载
- 20. 如何分析textareas的内容以显示链接和图像?
- 21. 如何在文本框的右侧显示图像而不是左侧
- 22. 如何在jQuery中显示内容之前显示setTimeout图片?
- 23. 如何将图像放置在左侧,并在右侧显示文字
- 24. 使图像显示...如何?
- 25. 如何在预览模式下显示ONE图像,同时在完整内容下显示多张图像?
- 26. 如何显示地图内容?
- 27. Directshow&.Net - 位图从图像左侧的右侧显示条纹?
- 28. jQuery的隐藏图像,变更内容,显示图像
- 29. 使用ColorBox显示图像数组内容
- 30. 当你的内容比父母的内容宽时,如何隐藏图像右侧溢出的图像?
鼓励:您应该使用Flex项目CSS3来显示多重效果http://www.w3schools.com/cssref/css3_pr_flex.asp – kollein