jqTouch/JavaScript 警报 - 如何删除标题?

发布于 2024-08-30 12:39:08 字数 129 浏览 0 评论 0原文

希望在我的 iPhone Web 应用程序中弹出一些警报/提示,但我看到标题位于警报的顶部(我知道这是正常行为)。我的问题是我可以删除这个吗?或使用替代解决方案。

寻找看起来像推送通知警报但用 JavaScript 编写的东西。

Looking to have some alerts/prompts pop up in my iPhone web app but I see the Title is at the top of the alert (I understand this is the normal behavior). My question is can I remove this? or use an alternative solution.

Looking for something that looks like the push notification alert but in JavaScript.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱人如己 2024-09-06 12:39:08

我认为您无法更改这些弹出窗口的默认行为。您可以做的是制作一个屏幕填充 div,它看起来与推送通知消息相同,并在 jQuery 中处理它的出现和消失。借助支持的 HTML5 和 CSS3 选项,这简直是小菜一碟:)

但是从底部滑动您自己的布局或使用翻转动画不是更时尚吗?

I don't think you can change the default behavior of those popups. What you could do is make a screen filling div which looks the same as the push notification message and handle it's appearance and disappearance in jQuery. With the supported HTML5 and CSS3 options it's a piece of cake :)

But isn't it more stylish to slide in your own layout from the bottom, or use the flip animation?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文