ios - Bootstrap 字形图标显示错误的图像

标签 ios css windows bootstrap-modal glyphicons

下载 bootstrap 3.3.7 并提取所有文件,包括 css、字体和 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">`

因为应用程序应该离线工作,所以将文件放在元素结构中。

请帮我解决这个问题。

最佳答案

检查 bootstrap.css 中的这些行并相应地更正字体文件夹的路径:

    @font-face {
  font-family: 'Glyphicons Halflings';

  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

关于ios - Bootstrap 字形图标显示错误的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48002882/

相关文章:

c - 获取程序原来被调用的位置

windows - 如何创建一个批处理文件来搜索所有子目录的文件类型并将它们复制到文件夹中?

ios - 为了在 iPhone 上保持一致的节奏,有没有比系统声音更好的解决方案?

ios - 在一个 block 中保留循环

iphone - UICollectionVIew 中的奇数个项目

jquery - 如何使用固定容器滚动 div 文本?

javascript - 如何仅使用基本的 javascript 和 DOM 操作来切换单个 <li> 元素以更改其样式?

php - 有没有办法在 Moodle 中生成 block 或创建类似嵌套block的样式?

windows - 我发现这段代码可以获取 Windows 写入权限,但它不起作用

ios - 控制 SKStoreReviewController 显示频率