jQuery Spinner箭头不可见 [英] jQuery spinner arrows not visible

查看:54
本文介绍了jQuery Spinner箭头不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此> jQuery Spinner箭头未​​加载(可见性)

但是,尽管微调器工作正常,但我仍然似乎无法加载或看到微调器按钮图像.CSS档案路径为:wwwroot/lib/jquery.ui.combined/Content/themes/base/jquery-ui.css图像位于:wwwroot/lib/jquery.ui.combined/Content/themes/base/images.

but I still can't seem to load or see the spinner button images, although the spinner works fine. The css file path is: wwwroot/lib/jquery.ui.combined/Content/themes/base/jquery-ui.css and the images are in: wwwroot/lib/jquery.ui.combined/Content/themes/base/images.

我过去使用jquery ui和spinners都没有问题.我再次使用NuGet(带有VS cummunity版本2015)来获取jquery ui程序包,该程序包现在似乎已将其加载到Windows用户文件夹中,因此我只是将该程序包拖到了解决方案中.任何指针将不胜感激.

I have had no problem in the past using jquery ui and spinners. I again used NuGet (with VS cummunity edition 2015) to get the jquery ui package, which now seems to load things into my windows users folder, so I just dragged the package into my solution. Any pointers would be appreciated.

推荐答案

请不要使用Nuget安装Jquery-Ui 1.12.1

Please do not use Nuget to install Jquery-Ui 1.12.1

包裹是Buggy.

我已经证实了.该程序包包含一个适用于1.12.1的正确的Jquery UI JavaScript文件,但缺少结构和主题文件的内容,并且包含旧版1.11.4和1.12.0中的完全错误的样式表

I have verified that. The package include a correct Jquery UI JavaScript file for 1.12.1 but is missing the ingredients of the structure and theme files, and it includes Completely WRONG Style Sheets from the older 1.11.4 and 1.12.0

我必须分别在项目文件中修复它们.

I had to fix them in my project file individually.

指向我进行调查Nuget的原因是,我打开的一张票与错误的对话框取消文本有关,该文本溢出了取消"图标,他们指示我样式表版本不匹配,您就可以了.

What pointed me in this direction to investigate Nuget, was a ticket I opened related to a wrong Dialog cancel text that overflow the Cancel icon, and they pointed me to a mismatch in the style sheet versions, and here you go.

只需从以下位置下载正确的稳定样式表和脚本包即可 http://jqueryui.com/

Just download the correct Stable style sheets and script package from http://jqueryui.com/

然后打包Uip Zip文件,并使用VS Add-Existing将正确的图像和样式表包含到Content/themes/base下的适当文件夹中

then Upack the Zip file, and use VS Add-Existing to include the correct images and style sheets to the proper folders under Content/themes/base

样式表的新结构为:

  • jquery-ui.css包含所有Jquery UI的所有必需样式元素
  • jquery-ui.structure.css包含核心ui,而没有主题
  • jquery-ui.theme.css包含主题

so jquery-ui = jquery-ui.structure + jquery-ui.theme

so jquery-ui = jquery-ui.structure + jquery-ui.theme

这样,如果您需要使用自己的自定义主题,则可以将jquery-ui.structure与主题一起使用.

This way, if you need to use your own custom theme, you can use the jquery-ui.structure along with your theme.

希望这可以帮助任何遇到与Nuget包相同问题的人

Hope this helps anyone facing the same problem we faced with the Nuget package

这篇关于jQuery Spinner箭头不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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