【问题标题】:How to remove title on Prompt Jquery如何在 Prompt Jquery 上删除标题
【发布时间】:2016-11-30 10:01:58
【问题描述】:

如何使用 jquery 删除提示标题“localhost says”

【问题讨论】:

  • 不能,是浏览器设置的。
  • 你需要使用自己的弹窗
  • 你不能改变它。你唯一能做的就是;改用图书馆。 jqueryscript.net/tags.php?/prompt
  • 你不能操纵它。改用 jquery HTML 模型弹出窗口。

标签: javascript jquery


【解决方案1】:

也许这可以工作。另请参阅same hear

$(".ui-dialog-titlebar").hide();

【讨论】:

  • 仔细阅读问题。它的关于提示不是 jquery ui 对话框。
【解决方案2】:

你不能。只有您可以使用自己的模块窗口。 或图书馆:

https://alertifyjs.org

http://bootboxjs.com/

http://t4t5.github.io/

上一个链接的示例:

swal({


title: "An input!",
  text: "Write something interesting:",
  type: "input",
  showCancelButton: true,
  closeOnConfirm: false,
  animation: "slide-from-top",
  inputPlaceholder: "Write something"
},
function(inputValue){
  if (inputValue === false) return false;

  if (inputValue === "") {
    swal.showInputError("You need to write something!");
    return false
  }

  swal("Nice!", "You wrote: " + inputValue, "success");
});

你可以在 google 中找到很多不错的库。

【讨论】:

    猜你喜欢
    • 2012-10-28
    • 2015-04-28
    • 2018-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-31
    • 1970-01-01
    相关资源
    最近更新 更多