只要IE8一读到这个标签,它就会自动启动IE7兼容模式,保证页面完整展示.

还有一种方法是针对整个网站的,在IIS中加入如下描述符就可以有相同的效果,当然这么做范围更广.

<?xml version="1.0" encoding="utf-8"?><configuration><system.webServer><httpProtocol><customHeaders><add name="X-UA-Compatible" value="IE=EmulateIE7"></customHeaders></httpProtocol></system.webServer></configuration>

或者你还可以使用IIS admin tool来定义,更为简单.

image

2.Interaction.js 在IE中出现错误,而火狐却运行正常

DragInteraction.prototype.OnUp=function (e)
{
    if (this.drag)
{
        this.element.style.position='relative';
        this.element.style.left = 0;
        this.element.style.top = 0;
        this.element.style.clip = 'rect(' + 0 + ' ' + this.element.width + ' ' + this.element.height + ' ' + 0 +')';
        this.PointsData.AddPoint(e.clientX+GetScrollLeft(this.element), e.clientY+GetScrollTop(this.element));
        if (this.onComplete) this.onComplete();
        this.PointsData.Clear();
        this.drag = false;
    } else {
        this.PointsData.Clear();         //没拖动要清除选中的点,这条语句必须加否则单击地图但是没有拖动时,下次再单击但没有拖动出现地图自动拖动的现象
    }