css - Datepicker 上一个和下一个按钮图像问题

标签 css datepicker

我正在使用简单的日期选择器,但问题是上一个和下一个按钮图像未显示。

https://jqueryui.com/datepicker/

如果链接如下所示,则工作正常。

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">

但是一旦我将 jquery-ui.css 处理到我的本地镜像就不会显示,如下所示。

<link rel="stylesheet" href="css/datatable/jquery-ui.css" />

在浏览器控制台中,出现如下错误。

"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_flat_75_ffffff_40x100.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_highlight-soft_75_cccccc_1x100.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-icons_222222_256x240.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_glass_75_dadada_1x400.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-icons_454545_256x240.png"

错误很简单,就是找不到这些图片。但是我不知道如何在将 jquery-ui.css 保存在本地的同时解决这个问题。

提前致谢。

最佳答案

在您的本地系统中创建文件夹(images):

TestProject/css/datatable/images/

下载(或)savaAs 从以下 url 到上面的同名路径并检查:

http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-icons_222222_256x240.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-icons_454545_256x240.png

关于css - Datepicker 上一个和下一个按钮图像问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38264625/

相关文章:

javascript - 使内联 block 垂直对齐顶部?

html - 如何删除第三方选择器?

css - 如何将 Extjs 滚动条宽度和边框半径更改为 firefox

jquery - 日期选择器中是否可以仅显示所选年份而不显示范围?

c# - 将 DatePicker 的日期绑定(bind)到 ConverterParameter

javascript - 让 JQuery-UI 日期选择器正确格式化初始日期

android - 在android中的datepicker上更改下一个显示日期

image - 全屏缩放背景是否有最佳图像尺寸(宽度 x 高度 | 文件大小)?

html - 仅选择 div 中的第一个和最后一个链接

jquery - 在 Jquery 日期选择器中解释了错误的月份,数据从 MySQL 中提取