jquery - 关闭 jquery 对话框中关闭按钮上的文本

标签 jquery dialog

是什么导致我的 jquery 对话框同时显示关闭文本和图标?

如何删除关闭文本?

我正在使用:

<script src="https://code.jquery.com/jquery-1.12.1.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.10.3/themes/cupertino/jquery-ui.css" />

Close Image

最佳答案

我猜您缺少一些必需的 CSS 文件。但无论如何,您可以使用以下方法覆盖:

  • 负文本缩进。
  • 溢出已隐藏。

给出这个CSS:

.close {
  text-indent: -99em;
  overflow: hidden;
}

关于jquery - 关闭 jquery 对话框中关闭按钮上的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44806553/

相关文章:

c# - Fancytree 没有加载 ajax 请求

android - 对话框颜色选择器仅显示购买的颜色

android - 在 onCreateView 中显示 "Loading..."对话框

android - DialogFragment 的 setTitle 在 Android M 中不起作用

jquery - 无法激活事件点击

不同语言的 jQuery .load()

jquery - 如何按高度对 DIV 进行排序?

jquery - 在固定透明标题下隐藏滚动内容,滚动背景

java - 自定义 Java 对话框颜色、外观、主题

android - 从 Android 中的自定义对话框请求运行时权限