【发布时间】:2018-06-08 17:31:46
【问题描述】:
下载 bootstrap 3.3.7 并解压所有文件,包括 css、fonts 和 js 文件夹。我将所有文件复制到 www/css 文件夹、www/js 和 www/css/fonts 在 index.html 中如下:
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
并在按钮上使用图标:
`<button type="button"><span class="glyphicon glyphicon-ok"></span>Yeah</button>
<button type="button">span class="glyphicon glyphicon-remove"></span>Nope</button>
`
在android平台上的图标不能正常显示汉字,在iOS平台上显示其他花哨的图标,在windows平台上都没有显示。
我尝试从npm install bootstrap下载
这只是将文件夹添加到 node_modules 并且任何方法都不起作用。
不使用的原因
`<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">`
因为应用程序应该离线工作,所以将文件放在项目结构中。
请帮我解决这个问题。
【问题讨论】:
-
还包括字形的 css
-
没有 glyohicons 的 css 我可以知道你推荐了哪个 css 吗? @maddy23285
-
打开浏览器开发工具,检查字体是否加载
-
@VilleKoo : 没用.. 询问我的层次结构哪里出了问题
标签: ios css windows bootstrap-modal glyphicons