【问题标题】:IE will display this in 2 rows, but I want it displayed in one lineIE 将显示为 2 行,但我希望它显示为一行
【发布时间】:2010-10-07 13:03:52
【问题描述】:

我有以下代码:

<div id="banner">
<a href="http://www.kiubbo.com"><img src="/Logot.png" border=0></a>
    <script type="text/javascript"><!--
            google_ad_client = "pub-xxxxx";
        /* 468x60, creado 13/02/09 */
        google_ad_slot = "7830464607";
        google_ad_width = 468;
        google_ad_height = 60;
        //-->
    </script>
            <script type="text/javascript" src="http://pagead2.googlesyndication.com /pagead/show_ads.js">
    </script>
</div> 

在 Firefox 中看起来不错,但在 IE 中显示为 2 行 (http://www.kiubbo.com)

有人知道如何解决这个问题吗?

谢谢。

【问题讨论】:

    标签: php css layout


    【解决方案1】:

    试试:

    <style type="text/css">
       #banner a {
          float: left;
       }
       #banner iframe {
          float: left;
       }
       .clear { clear: both; }
    </style>
    

    并将其放在横幅 div 内的最后一个脚本标记之后:

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

    【讨论】:

    • 谢谢Plan B,我正在努力让它工作,但我不知道图片的代码在#banner之前或括号内{}问候,CS
    【解决方案2】:

    好像给了logo图片

    'position:absolute;'
    

    在 IE 中将它们放在同一行。当然,它们也相互重叠。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-11
      • 2022-11-26
      • 1970-01-01
      • 1970-01-01
      • 2012-05-23
      • 1970-01-01
      • 2015-06-24
      相关资源
      最近更新 更多