自定义Javascript的提示框
正如标题所述,我在 Silverlight 应用程序中通过以下命令调用非常灵活的 Javascript 提示框。 string input = System.Windows.Browser.HtmlPage.Window.Invoke("prompt", new string[] { "您的问题在这里", "答案输入在这里.." }) as string;
但我想要的是在调整大小、对齐方式和提示框标题内容方面自定义提示框。我如何在上面的代码中传递这些参数,而不破坏其核心功能?
As the Title says, I am invoking a Prompt-box of very-flexible Javascript by the below command in my Silverlight application.
string input = System.Windows.Browser.HtmlPage.Window.Invoke("prompt", new string[] { "YOUR QUESTION GOES HERE", "THE ANSWER INPUT GOES HERE.." }) as string;
But what i want is to customize the prompt box in terms of resizing, alignment, and Prompt-box header content. How can i pass such parameters in the above code, without breaking its core Functionality ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Jquery 插件可用......你可以使用
http://theinfiniteloopblog.com/programming/jscript/自定义 javascript-alert-and-confirm-dialog-boxes/
Jquery Plugins are available....you can use
http://theinfiniteloopblog.com/programming/jscript/custom-javascript-alert-and-confirm-dialog-boxes/