jQuery-ui对话框的"x"按钮图像不可见 [英] Jquery-ui dialog box 'x' button image is not visible

查看:116
本文介绍了jQuery-ui对话框的"x"按钮图像不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用我的js,css代码作为一个简单的jquery-ui对话框应用程序,

I am doing a simple jquery-ui dialog application with my js,css code as,

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="jquery-ui.css">
  </head>
  <body>
    <div id="dialog">this is a dialog box</div>
    <script src="jquery.js"></script>
    <script src="jquery-ui.js"></script>
    this jquery ui is added.....
    <script>     
      $("#dialog").dialog() 
    </script>
  </body>
</html>

当我添加一个简单对话框时,对话框关闭按钮中的x标记不可见.

When i add a simple dialog box, the x mark inside the dialog's close button is not visible.

我是否缺少任何图像精灵文件?

Am i missing inclusion of any image sprite file?

推荐答案

尝试一下..

Include "sprite image" and if you put css file in project css folder means put image in image folder and add following changes

.ui-state-default .ui-icon {
    background-image: url("images/ui-icons_888888_256x240.png");//change path of image in css(jquery-ui.css)
}

这篇关于jQuery-ui对话框的"x"按钮图像不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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