弹出窗体使用html / javascript / css [英] popup form using html/javascript/css

查看:124
本文介绍了弹出窗体使用html / javascript / css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在弹出窗口中打开一个html表单。 Popup不应该是一个窗口(通常使用window.open()创建),而是应该像下面的链接中一样(在firefox中打开)
http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt
但问题这个代码是,我不能改变内容弹出内容从请输入您的姓名到我的html表单。
在搜索时,我发现我们不能更改弹出框提示框的内容,唯一的解决方案是创建自己的弹出窗口...
没有更简单的解决方案?

I have to open an html form in a popup. Popup should not be a window (that is usually created using window.open() ), instead it should be like one appeared in the link below (open in firefox) http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt But the problem with this code is that, I cannot change the content popup content from "Please enter your name" to my html form. While searching, I found that there we CANNOT change the content of popup Prompt Box and the only solution is to create your own popup... Isn't there any easier solution ?

谢谢....

推荐答案

请尝试 jQuery UI对话框

这里是表单演示

要移动使用,请查看< a href =http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-dialogs.html =noreferrer> jQuery Mobile - 创建对话框

这篇关于弹出窗体使用html / javascript / css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆