+ -
当前位置:首页 → 问答吧 → JQuery的AJAX IE6

JQuery的AJAX IE6

时间:2010-12-02

来源:互联网

JQuery的AJAX

HTML code


    $('.table').click(function(){
        $.ajax({
              url:'table.html',
              type:'GET',
              dataType:'html',
              timeout: 0,
              success: function(html){
                    $('.main').html(html);    
              }
        });
    });







table.html

HTML code

<table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr>
    <th scope="col">&nbaaaaaaaaaaaaasp;</th>
    <th scope="col">&aaaaanbsp;</th>
    <th scope="col">aaaaaaaaaaaaa&nbsp;</th>
  </tr>
  <tr>
    <td>&nbspaaaaaaaaaaa;</td>
    <td>&nbaaaaaasp;</td>
    <td>&nbsaaaaaaaaap;</td>
  </tr>
  <tr>
    <td>&naaaaaaabsp;</td>
    <td>&nbaaaaaaaaasp;</td>
    <td>&nbaaaaasp;</td>
  </tr>
</table>





在IE6下,当页面超出一屏的时候,页面就没了,变成白色。其他浏览器正常,是我AJAX写错了还是别的什么原因?

作者: hong8726   发布时间: 2010-12-02

....原因检查出来了,是样式的问题,AJAX载入的页面不知道为什么在IE6下样式有问题,直接写在页面里就没问题

作者: hong8726   发布时间: 2010-12-02

热门下载

更多