0

我有 4 个盒子包裹在一个主盒子里。前两个盒子原本在同一行。不知何故,某些内容可能已被删除,现在框 2(我在下面的代码中将其标记为“我的问题”)被向下推,框 3 和 4 仍然很好,只是将页面向下推到为框 2 留出空间。

框 1 是“幻灯片”,很好 框 2 是“myissue”,应该在“幻灯片”的右侧

方框 3 是被推下的“browsebox” 方框 4 是被推下的“foo-wrap”

页面很好,看起来页面在幻灯片和 myissue 之间看到了一个 br 标签。

<div id="homepage">
<div id="slideshow-wrap" class="left">
    <script>
(function($) {
  $(document).ready(function(){
        $('#slideshow').vslide({
        speed: 5000
    });
  });
})(jQuery);
</script>

<div id="slideshow">
  <a href="http://s.htm" alt="" class="slide" style="display: none;"></a>
  <a href="http://s.htm"><img src="/.jpg" alt="" class="slide" style="display: none;">       </a>
  <a href="http://s.htm"><img src="/.jpg" alt="" class="slide currentPic"   style="display: block;"></a>
  <a href="https://s.asp?"><img src="/.jpg" alt="" class="slide" style="display: none;"></a>
  <a href="http://s.htm"><img src="/.jpg" alt="" class="slide" style="display: none;"></a>

  <div id="btns_wrap">
    <a class="back_btn" href="#">&lt;</a><!--LEFT ARROW-->
    <div id="btns">
      <a class="" href="#">1</a>
      <a href="#" class="">2</a>
      <a href="#" class="selected">3</a>
      <a href="#" class="">4</a>
      <a href="#" class="">5</a>
    </div>
    <a class="forward_btn" href="#">&gt;</a><!--RIGHT ARROW-->
  </div>


</div> <!-- #slideshow -->
    <div id="myissue" class="left">
        <div id="myissue-title">
            Div with issue
        </div>
        <div id="myissue-box">
                        <div class="myissue-entry">abc.</div>
                        <div class="myissue-entry"><br></div>
                        <div class="myissue-entry">123.</div>
            <div class="myissue-entry"><br></div>
        </div>
        </div>
    <div class="clear">
    </div>

    <div id="browse-box">
        <div id="browse-box-title">Browse Stuff</div>

        <div class="b-box b1 transition left">
            <a href="http://s.htm"><img src="/.jpg" alt="foo"></a>
        </div>

        <div class="b-box b2 left">
<a class="b-box-link transition" href="http://.htm">
                <div class="b-box-link-top">
                    <div class="left">
                        foo &amp; bar
                    </div>
                    <div class="right">
                        <img src="/.png" alt="Arrow">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="b-box-link-bottom">
                    Hello World! 
                </div>
            </a>

        </div>

        <div class="b-box b3 left">
            <a class="b-box-link transition" href="http://.htm">
                <div class="b-box-link-top">
                    <div class="left">
                        Things
                    </div>
                    <div class="right">
                        <img src="/.png" alt="Arrow">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="b-box-link-bottom">
                    More things! 
                </div>
            </a>
        </div>

        <div class="clear">
        </div>

        <div class="b-box b4 left">
            <a class="b-box-link transition" href="http://.htm">
                <div class="b-box-link-top">
                    <div class="left">
                        Foo
                    </div>
                    <div class="right">
                        <img src="/.png" alt="Arrow">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="b-box-link-bottom">
                    Hello!
                </div>
            </a>
        </div>

        <div class="b-box b5 left">
            <a class="b-box-link transition" href="http://.htm">
                <div class="b-box-link-top">
                    <div class="left">
                        Hello
                    </div>
                    <div class="right">
                        <img src="/.png" alt="Arrow">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="b-box-link-bottom">
                    Hello!
                </div>
            </a>
        </div>

        <div class="b-box b6 transition left">
            <a href="/.asp"><img src="/.jpg" alt="abc"></a>
        </div>
        <div class="clear">
        </div>

    </div>
    <script type="text/javascript">
</script>
<div id="foo-wrap">
        <div id="foo-title">Foo</div>
        <div id="fooslider">&nbsp;</div>    
    </div>
    </div>
</div>
4

1 回答 1

0

上面缺少一个关闭 div。

于 2013-09-23T20:21:34.270 回答