aspx.cs代码+jquery实现渐隐弹出提示层

 实现这个很简单,代码复制我的过去用该一下命名就ok了,基本不需要额外的插件,如果你不是一味追求无刷新的话...

自己写个div,引入jquery-1.3.2.min.js


Page.ClientScript.RegisterStartupScript(Page.GetType(), "s", "<script>$(document).ready(function(){$(function(){$('#success').fadeIn('slow');$('#success').fadeOut('slow');})});</script>");

#success 是提示层div的id,当然你也可以用.classname获取

代码
<div id="success" style=" 415px; height: 99px; position:absolute; left: 16px; top: 148px;border:1px #0099FF solid; background:#9CCBFF; display:none">
<div style="height:25px; line-height:25px; border-bottom:1px #0099FF solid;">
<span style="">&nbsp; </span><span style=" color:#ff0000" onclick="$('#success').hide();">[关闭]</span></div>
<div style="margin:0 auto; font-size:15px; 169px; height: 55px; font-weight:bold; color:#000;">
<br />
基本信息 保存成功
!</div>
</div>

原文地址:https://www.cnblogs.com/baobao2010/p/1786695.html