我很难在9中将qTip (qTip2)显示到我的本地IIS在Windows 8中提供的页面上。
在我的默认IIS网站(DefaultAppPool .NET4.0集成托管管道)中,以下页面保存为1.htm
http://localhost/1.htm
...and是一个远程网站(http://imagehost.bigwavesoftware.net/qtip/1.htm)。
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://imagehost.bigwavesoftware.net/qtip/jquery.qtip.css">
</head>
<body>
<div id="tooltip">Here is a tooltip</div>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
<script src="http://imagehost.bigwavesoftware.net/qtip/jquery.qtip.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#tooltip').each(function () {
$(this).qtip({
content: 'tooltip',
hide: {
fixed: true,
delay: 200
},
position: {
my: 'top left',
at: 'bottom center',
target: $(this)
}
});
})
})
</script>
</body>
</html>
在本地IIS中为该页面提供服务会使IE9窒息。
有什么可能导致这一切的想法吗?
顺便说一下,下面示例中的qtip库托管在我的个人服务器上,是最新的2.0.1-31版本。
发布于 2013-03-09 00:05:15
可能是跨域限制--在IIS下运行时,您要求localhost:yourportnumber
上的站点从bigwavesofsoftware.net
获取数据,这通常是不允许的。直接加载该文件并不会触发这一点,因为它并不被视为来自另一个域的请求--它是来自源文件的直接请求。
https://stackoverflow.com/questions/15305403
复制相似问题