1、引入外部jquery文件
比如:
2、点击按钮时的JQuery代码
复制代码 代码示例:
$(document).ready(function () {
$("#go").click(function () {
/*属性*/
$("#go2").css({ "position": "absolute", "text-align": "center", "top": "0px", "left": "0px", "right": "0px", "bottom": "0px", "background": "red", "visibility": "visible", "filter": "Alpha(opacity=90)"
});
/*高为屏幕的高*/
$("#go2").css({
height: function () {
return $(document).height();
},
width:"100%"
});
});
});
3、html页面代码
正在提交数据...
4、cs页面部分
复制代码 代码示例:
protected void go_Click(object sender, EventArgs e)
{
// System.Threading.Thread.Sleep(5000);
//此处放实际的程序代码
}