首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IE兼容性、保证金问题

IE兼容性、保证金问题
EN

Stack Overflow用户
提问于 2013-02-02 05:22:45
回答 2查看 153关注 0票数 0

我大约一个月前开始在这家公司工作,我一直在努力清理他们的网站。真是一团糟。我老板用的是IE,而我用的是Chrome,就像是在跑来跑去。jQuery滑块下面的标题是:“世界级的机械工程师和承包商-在中央PA”,位于<td>的最左边,但另一个h1没有。我希望网站在Chrome中呈现的效果与IE中的一样,但它在Chrome中的外观正是我想要的。在Chrome中,h1会向右拉出40px,以便缩进。我错过了什么,这里?

http://www.enginuity-llc.com/index.htm

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-02-02 05:36:33

您的标记无效。请注意,下面代码段的第二行中有一个表元素,其中的h1是一个子元素。

代码语言:javascript
复制
<tr>
    <td height="50" colspan="2" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <h1 style="margin-left:40px">World-Class Mechanical Engineers & Contractors - in Central PA</h1>
        <p style="margin-left:50px; margin-right:75px">Enginuity, LLC is a local firm with decades of global experience in the HVAC and Plumbing sectors. Whether you're looking for a custom process design/build, a retrofit to existing HVAC equipment, service                  and maintenance, or sustainable energy solutions, Enginuity-LLC is your ultimate one-stop partner. What began in 2002 with four mechanical contracting veterans, has grown into an 85-strong firm that still delivers the best design, service, and                         support in the business.</p>
        <p style="margin-left:50px; margin-right:75px">Enginuity-LLC is more than just your local Energy Star Partner & MSCA Green-Star Recipient; we're your solutions provider for the life of your building. We've worked with large enterprises and small businesses, but regardless of what you need, you'll find a level of professionalism and experience unmatched in the HVAC, Plumbing, and Mechanical Contractor market.</p>
        <h1 style="margin-left:40px">We Specialize in:</h1>
            <table style="margin-left:80px">
                <tr>
                    <td width="180px">
                        <ul>
                        <li>HVAC</li>
                        <li>Plumbing</li>
                        <li>Medical Gas Piping</li>
                        <li>Pneumatic</li>
                        <li>Hydraulics</li>
                        <li>Steam</li>
                        <li>Compressed Air</li>
                        <li>Process Piping</li>
                        <li>Refrigeration</li>
                        <li>Utility Piping</li>
                        <li>Ventilation</li>
                        </ul>               
                    </td>
                    <td width="220px">
                        <ul>
                        <li>Centrifugal Chillers</li>
                        <li>Special Environments</li>
                        <li>Specialty Fabrication</li>
                        <li>Backflow Preventers</li>
                        <li>Fire Damper Inspection</li>
                        <li>Sheet Metal / Ductwork</li>
                        <li>New Construction</li>
                        <li>Tenant Fitouts</li>
                        <li>Restoration</li>
                        <li>Turn-Key Design / Build</li>
                        <li>Preventative Maintenance</li>
                        </ul>               
                    </td>
                    <td width="220px">
                        <ul>
                        <li>Energy Retrofits</li>
                        <li>Energy Optimization</li>
                        <li>Computer Rooms</li>
                        <li>Climate Control</li>
                        <li>Radiant Floor Systems</li>
                        <li>Geothermal Systems</li>
                        <li>Energy Audits / Benchmarking</li>
                        <li>Fire Damper Inspection</li>
                        <li>Liebert Certified Data-Aire</li>
                        <li>Electrical Controls</li>
                        <li>DDC</li>
                        </ul>               
                    </td>
                </tr>
            </table>
            <br>
        </td>
    </tr>

<td align="left" width="800px">

此外,如果你在IE中打开开发者工具(F12),你会注意到它在那个区域发生了异常(对我来说,它显示了一个<>子级,这是不可能的)

票数 2
EN

Stack Overflow用户

发布于 2013-02-02 05:26:59

您可以使用CSS重置,然后设置您自己的页边距。

重置样式表的目标是减少浏览器在默认行高、页边距和标题字体大小等方面的不一致。

http://meyerweb.com/eric/tools/css/reset/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14655251

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档