Glyphicon图标未出现在首页和刷新页之后 [英] Glyphicon icon not appear on first page and after refresh page

查看:146
本文介绍了Glyphicon图标未出现在首页和刷新页之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在bootstrap v3.3.5上使用bootstrap.min.css.我从 http://getbootstrap.com 下载引导程序,并在本地使用.我注意到在IE 9及更高版本上运行时,字形图标存在问题.登录后,glyphicon图标将消失在首页上,当我们刷新(F5)页面时,它将再次消失.

I'm using bootstrap.min.css on bootstrap v3.3.5. I download the bootstrap from http://getbootstrap.com and used it locally. I notice there is a problem with glyphicons when run on IE 9 and above. The glyphicon icon will disappear on first page after login and disappear again when we refresh (F5) on the page.

<link href="<%=request.getContextPath()%>/assets/bootstrap3/css/bootstrap.min.css" rel="stylesheet">

当我从CDN切换为使用bootstrap.min.css时,我没有错误.

When I switch to using bootstrap.min.css from a CDN I don't have the error.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

请帮助.我不知道本地和在线bootstrap.min.css

Please help. I don't know what is different between the local and online bootstrap.min.css

谢谢.

推荐答案

我希望这会对您有所帮助...

I Hope this will help you...

    <!DOCTYPE html>
    <html lang="en">
    <head>
         <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
          <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
          <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

    </head>
    <body>

<div class="container">
  <h2>Glyphicon Examples</h2>
  <p>Envelope icon: <span class="glyphicon glyphicon-envelope"></span></p>    
</div>

</body>
</html>

这篇关于Glyphicon图标未出现在首页和刷新页之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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