求Resource interpreted as Image but transferred with MIME type text/html 解决办法

daswcszxw 2013-02-05 11:11:11
<style type="text/css">
.sea_m .fl_pp {
display:block;
width:623px;height:50px;overflow:hidden;
}
</style>
<script src="http://www.17ugo.com/themes/ugo/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".j").click(function(){
alert("1")
});
});
</script>
<div class="sea_m">
<ul>
<li><b>品牌:<div class="j">下</div></b><span class="fl_pp">品牌品牌品牌品牌品牌品牌品牌品牌品牌品牌品牌品牌品牌品品牌品牌品牌品牌品牌品品牌品牌品牌品牌品牌品品牌品牌品牌品牌品牌品品牌品牌品牌品牌品牌品品牌品</span><div class="cl"></div></li>
</ul>
</div>
JQ click事件不能使用。 chrome 提示。

Resource interpreted as Image but transferred with MIME type text/html

就解决办法。
...全文
10276 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
fzfei2 2013-02-05
  • 打赏
  • 举报
回复
找下你图片,背景的请求都对不对 页面中有图片,背景显示不出来的??,如果都正常可以略过 呵
daswcszxw 2013-02-05
  • 打赏
  • 举报
回复
引用 1 楼 bbjbepzz 的回复:
应该是那个图片不让你引用,返回了一些错误信息(文本格式),才会出现那个错误。
引用 2 楼 fzfei2 的回复:
引用 楼主 webyellow 的回复: Resource interpreted as Image but transferred with MIME type text/html 这与上面的代码无关吧,是你图片资源的来源有问题
求解决办法。
fzfei2 2013-02-05
  • 打赏
  • 举报
回复
引用 楼主 webyellow 的回复:
Resource interpreted as Image but transferred with MIME type text/html
这与上面的代码无关吧,是你图片资源的来源有问题
bbjbepzz 2013-02-05
  • 打赏
  • 举报
回复
应该是那个图片不让你引用,返回了一些错误信息(文本格式),才会出现那个错误。

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧