[英]How can I align images on my MySpace page?
I want to put pictures at the top of my myspace page above the ad on my band profile. 我想在我的乐队简介上的广告上方放置我的myspace页面顶部的图片。 I can put one picture up just fine, but when I try to put pictures on top of one another they just overlap each other. 我可以把一张照片放得很好,但是当我试图将照片放在另一张照片上时,它们只是相互重叠。
I would like to do something like this . 我想这样做这样 。
Any tips for how I can fix this? 有关如何解决此问题的任何提示?
I used: 我用了:
<style type="text/css">
body {
background-position:top center;margin-top: H;
}
div.topbanner {
top: 150%;
left: 49%;
margin-left: -600px;
width: 100%;
height: 800px;
position: absolute;
}
</style>
<div class="topbanner">
<IMG SRC="http://www.victoryhardcore.com/myspaceimages/atdr/homesick/adtr_myspace_top_26.jpg" border="0">
</div>
This is what I have so far: 这是我到目前为止:
http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=446378267 http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=446378267
I want a picture above that, but whenever I put the code in again the new picture just sits on top of the old picture. 我想要一张上面的图片,但每当我再次放入代码时,新图片就会位于旧图片的顶部。
The page you want to copy uses a table layout with images in each cell: 要复制的页面使用表格布局,每个单元格中包含图像:
Just to show the first rows: 只是为了显示第一行:
<table width="1260" height="1414" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" rowspan="2">
<img src="image01.jpg" width="481" height="107" alt="">
</td>
<td colspan="6">
<img src="image02.jpg" width="290" height="47" alt="">
</td>
<td colspan="5" rowspan="2">
<img src="image03.jpg" width="489" height="107" alt="">
</td>
</tr>
<tr>
<td colspan="6">
</td>
</tr>
<tr>
<td>
<img src="image05.jpg" width="239" height="428" alt="">
</td>
<td colspan="14">
</td>
<td>
<img src="image07.jpg" width="244" height="428" alt="">
</td>
</tr>
</table>
It's going to take some time to copy that ;-). 这需要一些时间来复制;-)。
It's because you're using position: absolute
, presumably for both, so they're trying to sit on top of each other. 这是因为你使用的是position: absolute
,大概是两者都有,所以他们试图坐在彼此之上。 Try making the 2nd one position:relative
. 尝试做第二个position:relative
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.