Icons missing in jQuery UI

前端 未结 11 1869
谎友^
谎友^ 2021-02-03 17:13

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 p

相关标签:
11条回答
  • 2021-02-03 17:46

    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 :)

    0 讨论(0)
  • 2021-02-03 17:48

    You need downbload the jQueryUI, this contains de images that you need

    enter link description here

    0 讨论(0)
  • 2021-02-03 17:57

    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
    
    0 讨论(0)
  • 2021-02-03 18:02

    I met a similar error after adding jQuery-ui-tooltip component using bower. It downloads js + css files only, so I had to manually add images.

    A good source to find all the images (for all standard themes) is this CDN.

    0 讨论(0)
  • 2021-02-03 18:05

    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

    0 讨论(0)
  • 2021-02-03 18:05

    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

    0 讨论(0)
提交回复
热议问题