[英]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 responsive-design framework that supports ui elements. 尝试使用一些支持ui元素的响应式设计框架。 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.