无法解释为什么页面在IE中不起作用

Cant explain why page wont work in IE

本文关键字:IE 不起作用 为什么 无法解释      更新时间:2023-09-26

在此页面顶部:http://andrew-muir.com/search/2/#1-当你点击滑块时,它会使用AJAX将新结果加载到div中。当我在滑块上选择某些价格时,结果在IE中看起来很好,当我选择其他价格时,返回的结果都是坏的。

有什么想法吗?谢谢

滑块操作返回的HTML片段中有很多无效标记。你有一些未关闭的标签,等等

示例:

    <div style="background-color:#252525; padding:5px 10px; height:130px; position:relative;">
        <p class="bold" style="color:#8a96a4; margin-bottom:0.5em;">Blue Lucerne lotus jug</p>
        <p class="bold" style="color:#FFF; margin-bottom:0.5em;">&pound;4250</p>
        <p style="margin-bottom:0.5em;"><p><strong>Superb and very rare 30cm lotus jug in the bl&hellip;</p>
        <p class="boldred" style="position:absolute; bottom:0px; left:10px;"><a href="http://andrew-muir.com/stock/528/blue-lucerne-lotus-jug/">View details &gt;</a></p>
    </div>

带有"Superb and rare"文本的那一行有一个未闭合的<strong>标记。

当我尝试在IE 8开发工具中查看损坏的页面时,它不会向我显示主<div>的内容。这是一个明显的迹象,表明浏览器刚刚在沮丧中举手。

编辑—奇怪的它刚刚开始工作。。。