我想在3列中列出这些图像(见下)。 HTML编码是什么?
[图片]
[图片]
[图片]
<div class="rparticle ">
<div class="articleEntry Normal"><a href="[LINK]">[IMAGE]</a></div>
<div><a href="[LINK]">[TITLE]</a></div>
</div>
.rparticle
{
display:inline;
clear: both;
text-align: center;
margin-bottom : 25px;
width:190px;
}
最佳答案
让他们向右或向左浮动。
...
<head>
<style>
.rparticle{
float: left;
width: 33%;
text-align: center;
margin-bottom : 25px;
}
.clear{
clear: both;
}
</style>
</head>
<body>
<div class="rparticle">
<div class="articleEntry Normal"><a href="[LINK]">[IMAGE1]</a></div>
<div><a href="[LINK]">[TITLE]</a></div>
</div>
<div class="rparticle">
<div class="articleEntry Normal"><a href="[LINK]">[IMAGE2]</a></div>
<div><a href="[LINK]">[TITLE]</a></div>
</div>
<div class="rparticle">
<div class="articleEntry Normal"><a href="[LINK]">[IMAGE3]</a></div>
<div><a href="[LINK]">[TITLE]</a></div>
</div>
<br class="clear" />
</body>
...