如何使用jQuery更改div在mvc中的位置 [英] how to change the location of div in mvc using jquery

查看:155
本文介绍了如何使用jQuery更改div在mvc中的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

位于弹出对话框底部的div显示.我想在使用jquery单击按钮时在弹出窗口的中心显示此div.

a div display in bottom of the popup dialog. i want to display this div in center of popup when i click on button using jquery.

推荐答案

您可以使用css属性

例如:

you can use css property

eg:


(" span>).css({ 位置:" , 顶部:200px ;, 左:200px; })
("#Divid").css({ position: "absolute", top: 200px;, left: 200px; })


这篇关于如何使用jQuery更改div在mvc中的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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