简体   繁体   English

如何在MySpace页面上对齐图像?

[英]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

如何将我的文本/边框与我的页面中心对齐<div>元素? </div><div id="text_translate"><p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"><div class="snippet-code"><pre class="snippet-code-css lang-css prettyprint-override"> div1 { background-color: aqua; font-family: Candara; padding: 10px; border-radius: 10px; margin: 10px; width: auto; }</pre><pre class="snippet-code-html lang-html prettyprint-override"> &lt;body&gt; &lt;div1 style="font-size: 30px; text-align: center;"&gt; &lt;b&gt;Text here&lt;/b&gt; &lt;/div1&gt; &lt;/body&gt;</pre></div></div><p></p><p> 我正在尝试将我的边框和文本都对齐到页面的中心,但有些东西不起作用。 如果我解释得不够好,请询问更多详细信息:)。 这是代码:</p><p> <strong>HTML</strong></p><pre> &lt;body&gt; &lt;div1 style="font-size: 30px; text-align: center;"&gt; &lt;b&gt;Text here&lt;/b&gt; &lt;/div1&gt; &lt;/body&gt;</pre><p> <strong>CSS</strong></p><pre> div1 { background-color: aqua; font-family: Candara; padding: 10px; border-radius: 10px; margin: 10px; width: auto; }</pre></div> - How can I align my text/border to the center of my page with the <div> element?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将图像与文字对齐? - How can I align my images with the text? 如何在嵌入式块中将图像与文本对齐? - How can I align my images with text in an inline-block? 如何对齐打印页面的内容? - How can i align contents of my print page? 如何在页面导航旁边对齐CSS中的对象 - How can I align an object in CSS next to my page navigation 我无法对齐 html 页面上的图像图像,我该怎么办? - I can't align the image images on the html page, how can I do it? 如何使图像居中和左对齐? - How can I center and left align images? 如何在div / tab / ul容器内以“拼贴样式”自动对齐图像? - How can I get my images to auto Align in a “collage style” inside a div/tab/ul container? 如何设置for循环以在HTML页面中打印图像 - How can I set my for - loop to print images in the HTML - page 如何将我的文本/边框与我的页面中心对齐<div>元素? </div><div id="text_translate"><p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"><div class="snippet-code"><pre class="snippet-code-css lang-css prettyprint-override"> div1 { background-color: aqua; font-family: Candara; padding: 10px; border-radius: 10px; margin: 10px; width: auto; }</pre><pre class="snippet-code-html lang-html prettyprint-override"> &lt;body&gt; &lt;div1 style="font-size: 30px; text-align: center;"&gt; &lt;b&gt;Text here&lt;/b&gt; &lt;/div1&gt; &lt;/body&gt;</pre></div></div><p></p><p> 我正在尝试将我的边框和文本都对齐到页面的中心,但有些东西不起作用。 如果我解释得不够好,请询问更多详细信息:)。 这是代码:</p><p> <strong>HTML</strong></p><pre> &lt;body&gt; &lt;div1 style="font-size: 30px; text-align: center;"&gt; &lt;b&gt;Text here&lt;/b&gt; &lt;/div1&gt; &lt;/body&gt;</pre><p> <strong>CSS</strong></p><pre> div1 { background-color: aqua; font-family: Candara; padding: 10px; border-radius: 10px; margin: 10px; width: auto; }</pre></div> - How can I align my text/border to the center of my page with the <div> element? 如何在页面中间对齐 3 个 div? - How can I align 3 divs in the middle of the page?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM