简体   繁体   English

桌面网站上的移动对话框

[英]Mobile dialog on desktop website

I have a website (normal, for desktop browsers) and a mobile applicaiton. 我有一个网站(对于台式机浏览器来说是正常的)和一个移动应用程序。

I would like to suggest the visitors to try the mobile app. 我想建议访客尝试移动应用程序。 I created all the detection JS, cookies on server side to remember if he didn't want it, but I have one issue - Showing the dialog. 我在服务器端创建了所有检测JS,cookie,以记住他是否不想要它,但是我有一个问题-显示对话框。

I wanted to use jQuery UI, but the dialog dosn't look so well on mobile devices (even after adjusting sizes). 我想使用jQuery UI,但是该对话框在移动设备上看起来并不好(即使在调整大小之后)。

I thought about using jQuery mobile, but I get the feeling this is a bit of an over kill (adding the entire CSS and JS for just one dialog/popup, will require adding data-role to the pages and more. not sure about this. 我曾考虑过使用jQuery mobile,但是我感觉这有点过头了(只为一个对话框/弹出窗口添加整个CSS和JS,将需要在页面上添加数据角色,等等。) 。

I also thought about adding phonegap, but that feels as an even bigger overkill, just to show the message. 我还考虑过添加phonegap,但这只是为了显示消息,这感觉甚至更大了。

The message should only contain some text, and two buttons (Link to the app, or close with ajax callback to create a session/cookie var). 该消息应仅包含一些文本和两个按钮(链接到应用程序,或使用ajax回调关闭以创建会话/ cookie变量)。

So what would you suggest to display this one message? 那么,您建议显示此一条消息是什么? Thanks :) 谢谢 :)

Try to use some framework that supports elements. 尝试使用一些支持元素的框架。 I recommend Zurb's Foundation . 我推荐Zurb基金会 You also have to get look at its Reveal which offers easily call modals. 您还必须查看其Reveal ,它提供了轻松调用模态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 网站链接在台式机上有效,而不在移动设备上有效 - Website links work on Desktop, not on Mobile 从手机网站切换到桌面网站? - Switch from mobile to desktop website? 在桌面网站内显示移动网站 - show mobile website inside a desktop website 如何使用jquery在移动网站中模拟桌面网站的键盘事件? - How Keyboard events of a desktop website are simulated in mobile website using jquery? 使用引导程序(js,html)动态提供移动和桌面网站服务 - dynamic serving mobile & desktop website using bootstrap (js, html) 启用桌面视图的 PC 和移动设备上的网站不同 React - Website different on PC and on Mobile with DESKTOP VIEW ENABLED React 这是在 preact/react 中为桌面和移动设备实现单独网站的最佳方式 - Which is the optimal way of implementing separate website for desktop and mobile in preact/react 根据移动/台式机操作系统在网站上显示不同的按钮/下载链接 - Display different button/download link on website depending on mobile/desktop OS 如何从移动网站(不是应用程序)打开共享对话框? - How to open share dialog from mobile website(not app)? 如何在移动网站上创建“桌面版本”链接而不将其重定向到移动网站 - How to create a “Desktop Version” link on mobile website without it redirecting to the mobile site
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM