【问题标题】:Datepickerpopup from Ui Bootstrap doesn't show calendar iconUi Bootstrap 中的 Datepickerpopup 不显示日历图标
【发布时间】:2017-10-28 14:54:58
【问题描述】:

我正在学习Ui Bootstrap 的教程。代码与here完全相同。 如果我用本地 (<link href="css/bootstrap.min.css" rel="stylesheet">) 替换此 css line (<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">),日历图标就会消失,如图所示。我复制确切的bootstrap.min.css 并放入本地css 文件夹。有什么问题?

【问题讨论】:

  • 请检查您的 html 中包含的 glyphicon 样式和字体系列
  • 检查 bootstrap.min.css 并确保字形字体的路径指向正确的 URL。

标签: css angularjs angular-ui-bootstrap angular2-ui-bootstrap


【解决方案1】:

如果您打开控制台,您会发现对 glyphicon 字体的请求返回 404 (NOT_FOUND),因为本地 .css 文件尝试相对于其所在位置(本地脚本而不是托管在 cdn 上)定位这些文件)。

要解决此问题,您还必须在本地包含 glyphicons 文件

另一种选择是完全放弃 glyphicons 并使用 font awesome 或 occticons 之类的东西,因为 bootstrap 4 将删除 glyphicons。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-06
    • 2015-08-27
    • 1970-01-01
    • 2020-12-22
    • 1970-01-01
    相关资源
    最近更新 更多