网页表现奇怪,在右侧添加随机空间。 [英] Web Page acting strange, adding random space to the right hand side.

查看:80
本文介绍了网页表现奇怪,在右侧添加随机空间。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的温度。网站位于:

https://dl.dropbox。 com / u / 33215212 /%20Tribe%20Dreamweaver / Home.html [ ^ ]



屏幕右侧有随机空格,滚动你可以水平滚动到达那里,我不确定是什么导致这个,以及如何摆脱它。



任何想法?



谢谢。

In my temp. site located at:
https://dl.dropbox.com/u/33215212/The%20Tribe%20Dreamweaver/Home.html[^]

There is random white space on the right hand side of the screen, and scroll you can scroll horizontally to get there, I am unsure what is causing this, and how to get rid of it.

Any ideas?

thanks.

推荐答案

以下是您的问题的解决方案...

您的代码..

Here is a solution for your problem...
Your code..
<!-- Title -->
   <div objtype="5" style="width: 100%; height: 57px; removed: absolute; padding: 0px; removed 107px; removed 1px; z-index: 14;" id="txtBox_20" align="center">
       <span style="font-family: Cambria; font-size: 36pt;">
         <span style="color: rgb(155, 0, 0);">
          <span>
             <a href="Home.html" style="text-decoration:none; color:rgb(155, 0, 0);">The Tribe</a>
          </span>
       </span>
    </span>
   </div>
   <!-- Menu-Paragraph Separation -->





在div风格的上述代码行中你提到样式属性为 left:1px; 。因此它在您的页面中占用1px空间。因此,将其更改为 left:0px; ,如下所示。现在你不会在任何地方获得空间。



修改后的代码..



In the above lines of code in div style you mentioned style property as left: 1px;. So it taking 1px space in your page. So change that to left:0px; as below. Now you will not get space anywhere.

Modified code..

<!-- Title -->
    <div objtype="5" style="width: 100%; height: 57px; position: absolute; padding: 0px; top: 107px; left: 0px; z-index: 14;" id="txtBox_20" align="center">
        <span style="font-family: Cambria; font-size: 36pt;">
          <span style="color: rgb(155, 0, 0);">
           <span>
              <a="" href="Home.html" style="text-decoration:none; color:rgb(155, 0, 0);" >The Tribe</a>
           </span>
        </span>
     </span>
    </div>
    <!-- Menu-Paragraph Separation -->





希望你得到你的预期解决方案..



Hope you got your expected solution..


尝试从页面中的任何位置删除绝对位置。您可以通过更有效的浮动布局实现相同的结果,例如 http://www.w3schools.com/html /html_layout.asp [ ^ ]
Try to remove absolute position from everywhere in your page. You can achieve the same result with much more efficient floating layout, like this for example http://www.w3schools.com/html/html_layout.asp[^]


我发现填充有问题。我必须将填充设置为0px,然后调整每个横幅的大小。
I found that there was an issue with the padding. I had to set the padding to 0px and then adjust the size of every banner.


这篇关于网页表现奇怪,在右侧添加随机空间。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆