如何在mvc 4中使用jqery进行打开对话? [英] how to make open dialog using jqery in mvc 4?

查看:81
本文介绍了如何在mvc 4中使用jqery进行打开对话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.dotnet-tricks.com/Tutorial/mvc/42R0171112-CRUD-Operations-using-jQuery-dialog-and-Entity-Framework---MVC-Razor.html [ ^ ]

i想要这种类型但无法理解......

http://www.dotnet-tricks.com/Tutorial/mvc/42R0171112-CRUD-Operations-using-jQuery-dialog-and-Entity-Framework---MVC-Razor.html[^]
i want this type but could not understand...

推荐答案

创建自己的对话框并为它们添加属性。在div中显示数据,添加一个类和id。使用css样式的类和id来编写脚本代码。 Jquery有对话框属性
Create your own dialogs and add properties to them. Take a div where you will show your data, add a class and id to it. Use the class for css styling and id for writing the script code. Jquery has dialog property


('#id-name'),#用于访问id和
('#id-name'),# is used for accessing id and


('。class-name') 。用于访问类。 autoOpen:false,

可调整大小:false,

身高:170,

宽度:350,

显示: {effect:'drop',direction:up},

modal:true,

draggable:true,

open:function(事件,ui){
('.class-name'),. is used for accessing classes. autoOpen: false,
resizable: false,
height: 170,
width: 350,
show: { effect: 'drop', direction: "up" },
modal: true,
draggable: true,
open: function (event, ui) {


这篇关于如何在mvc 4中使用jqery进行打开对话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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