javascript - 项目上传到服务器后,i标签的图标无法显示

查看:126
本文介绍了javascript - 项目上传到服务器后,i标签的图标无法显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

问题就是,本地显示都好好的,上传到服务器再打开就变成图片这样了,我的html页面<head>是这样的
<head>

  <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="" name="description" />
<meta content="webthemez" name="author" />
<title>Bootstrap Admin html Template</title>
<!-- Bootstrap Styles-->
<link href="__PUBLIC__/Admin/Assets/Css/Bootstrap.css" rel="stylesheet" />
 <!-- FontAwesome Styles-->
<link href="__PUBLIC__/Admin/Assets/Css/Font-awesome.css" rel="stylesheet" />
 <!-- Morris Chart Styles-->

    <!-- Custom Styles-->
<link href="__PUBLIC__/Admin/Assets/Css/Custom-styles.css" rel="stylesheet" />
 <!-- Google Fonts-->

<link href='https://fonts.googleapis.com/...' rel='stylesheet' type='text/css' />

 <!-- TABLE STYLES-->
<link href="__PUBLIC__/Admin/Assets/Js/DataTables/dataTables.bootstrap.css" rel="stylesheet" />

</head>

请问是还有什么没包含到的文件吗?还是说存在别的问题?另外,console也有一堆问题:
Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
Jquery.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ Jquery.js:4
ajax @ Jquery.js:4
n._evalUrl @ Jquery.js:4
Ha @ Jquery.js:3
append @ Jquery.js:3
n.fn.(anonymous function) @ Jquery.js:3
success @ Jquery.main.js:205
i @ Jquery.js:2
fireWith @ Jquery.js:2
y @ Jquery.js:4
c @ Jquery.js:4
Plugins.js:35 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 OTS parsing error: invalid version tag
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 OTS parsing error: invalid version tag
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 OTS parsing error: invalid version tag
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
Plugins.js:35 OTS parsing error: invalid version tag
WOW.e.isVisible @ Plugins.js:35
(anonymous) @ Plugins.js:35
WOW.e.scrollCallback @ Plugins.js:35
(anonymous) @ Plugins.js:35
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
VM1250:20 Uncaught TypeError: Cannot read property 'add' of null

at c.b.initADA (eval at <anonymous> (Jquery.js:2), <anonymous>:20:6682)
at c.b.init (eval at <anonymous> (Jquery.js:2), <anonymous>:19:18126)
at new c (eval at <anonymous> (Jquery.js:2), <anonymous>:19:2908)
at n.fn.init.a.fn.slick (eval at <anonymous> (Jquery.js:2), <anonymous>:20:7967)
at initSlickSlider (eval at <anonymous> (Jquery.js:2), <anonymous>:65:22)
at HTMLDocument.eval (eval at <anonymous> (Jquery.js:2), <anonymous>:14:2)
at i (eval at <anonymous> (Jquery.js:2), <anonymous>:2:27449)
at Object.fireWith [as resolveWith] (eval at <anonymous> (Jquery.js:2), <anonymous>:2:28213)
at ready (eval at <anonymous> (Jquery.js:2), <anonymous>:2:30006)

b.initADA @ VM1250:20
b.init @ VM1250:19
c @ VM1250:19
a.fn.slick @ VM1250:20
initSlickSlider @ VM1251:65
(anonymous) @ VM1251:14
i @ VM1249:2
fireWith @ VM1249:2
ready @ VM1249:2
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag
www.wzzz.site/:1 Failed to decode downloaded font: http://www.wzzz.site/Public/H...
www.wzzz.site/:1 OTS parsing error: invalid version tag

菜鸟新学php,样式神马的也只看了一点,跪求大神指点迷津呀

解决方案

服务器配置不正确

直接访问 http://www.wzzz.site/Public/Home/fonts/icomoon.ttf 这个打开的是你的Home页面,这明显是不正确的。

这篇关于javascript - 项目上传到服务器后,i标签的图标无法显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆