- 爱易网页
-
ASP.NET教程
- 求教Razor模版跟jquery很多插件都不兼容吗
日期:2014-05-17 浏览次数:20448 次
求教Razor模版和jquery很多插件都不兼容吗?
举个我的例子说明,我找了好些jquery的对话框插件,比如leadModal,应用过程如下:
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.leanModal.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('a[rel*=leanModal]').leanModal({ top: 100, closeButton: ".modal_close" });
</script>
<style type="text/css">
#lean_overlay
{
position: fixed;
z-index: 100;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
background: #000;
display: none;
}
#OpenWindow
{
background: none repeat scroll 0 0 #FFFFFF;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
display: none;
padding-bottom: 2px;
width: 404px;
z-index: 11000;
left: 50%;
margin-left: -202px;
opacity: 1;
position: fixed;
top: 200px;
}
#OpenWindow-header
{
background: url("Image/hd-bg.png") repeat scroll 0 0 transparent;
border-bottom: 1px solid #CCCCCC;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 18px 18px 14px;
}
.modal_close