Icons missing in jQuery UI

2020-05-22 04:56发布

I'm using Modal Form and Widgets from jQuery, but the icons does not appear. for eg the Cross (X) and Plus-Minus (+-) Icons.

When I load the page I et these errors.

"NetworkError: 404 NOT FOUND - http://127.0.0.1:8000/static/css/images/ui-bg_flat_75_ffffff_40x100.png"
ui-bg_...100.png

"NetworkError: 404 NOT FOUND - http://127.0.0.1:8000/static/css/images/ui-icons_222222_256x240.png"
ui-ico...240.png

"NetworkError: 404 NOT FOUND - http://127.0.0.1:8000/static/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png"
ui-bg_...100.png

So, I downloaded the images, put it into the path specified, but then the +- icons appear twice at the extreme right and moreover only the column1 widgets are minimized. The Close X icon still not appears. Where I'm going wrong?

I would also like to know how to add remove widgets functionality?

11条回答
在下西门庆
2楼-- · 2020-05-22 05:14

I saw in console that whenever I open my datepicker that I get 404 Not found error for this image file ui-bg_glass_75_e6e6e6_1x400.png

I downloaded the image from github and put it in my local under jquery-ui folder. Now the problem is solved.

Other image files found here:

https://github.com/julienw/jquery-trap-input/tree/master/lib/jquery/themes/base/images

查看更多
戒情不戒烟
3楼-- · 2020-05-22 05:17

I found icons were not displaying due to a difference in the casing (ie upper case vs lower case). The CSS file was using "FFFFFF" while the actual file was using "ffffff". Icons displayed for me once I changed the case to match.

查看更多
甜甜的少女心
4楼-- · 2020-05-22 05:19

They arent missing, the path is wrong. Its looking in non-existent dir 'img' for a file that is in dir 'images'.

To fix either edit the file that declares the wrong path or as I did just make a softlink like

ln -s images img
查看更多
混吃等死
5楼-- · 2020-05-22 05:20

Just download it and save in your network location.

You can get it form the below.

https://code.google.com/p/vallalarblogs/downloads/detail?name=ui-bg_flat_75_ffffff_40x100.png&can=2&q=

reference: www.thedeveloperblog.com

查看更多
兄弟一词,经得起流年.
6楼-- · 2020-05-22 05:21

I have put the images in a convenient zip file: http://zlab.co.za/lib_help/jquery-ui.css.images.zip

As the readme.txt file in the zip file reads: Place the "images" folder in the same folder where your "jquery-ui.css" file is located.

I hope this helps :)

查看更多
成全新的幸福
7楼-- · 2020-05-22 05:22

you have workaround by setting background color instead of this missing icon. Here are the steps to follow:

  • open relevant 'jquery-ui-x.-.x.css' file
  • search for the missing file name in css file(eg: ui-bg_flat_75_ffffff_40x100.png")
  • Remove/comment the line that calls this background image
  • instead add the following line to replace the background color 'background-color: #ffffff'

That will probably work

查看更多
登录 后发表回答