自动消失的弹窗效果
来源:互联网 发布:快客淘宝软件 编辑:程序博客网 时间:2024/06/11 01:29
<div class="main"> <div class="demo"> <a href="#">点击预览效果</a> </div></div>
* { margin:0; padding:0}.main { width:900px; min-height:900px; margin:0 auto; position:relative;}.demo { margin:100px auto 0; text-align:center;}.demo a { display:inline-block; *display:inline; zoom:1; height:40px; line-height:40px; width:120px; margin:0 auto; font-size:16px; color:#fff; background:#159b48; text-align:center; text-decoration:none; border-radius:5px;}.demo a:hover { background:#0d853a;}#top_alert { width:250px; padding:10px 0; background:#fefcef; border:1px solid #f8efb0; color:#e69041; position:absolute; text-align:center; left:35%; top:0;}
$(document).ready(function(){ function showmessage(text){ if($('#top_alert span').text().length>0){ $('#top_alert').empty().append('<span>'+text+'</span>'); $('#top_alert').css('display','block'); }else{ $('.main').prepend('<div id="top_alert"><span>'+text+'</span></div>'); } } $('.demo a').bind('click',function(){ var info='jquery自消失弹窗效果实现了!'; showmessage(info); $('#top_alert').fadeOut(5000); });})
0 0
- 自动消失的弹窗效果
- [Android] 控件的动态显示和自动消失效果
- AlertDialog取消自动消失没有效果的问题
- 自动消失的UIAlert
- UIIAlertController的自动消失
- iOS 系统弹窗 自动消失
- UIAlertView的自动消失,手动消失和自定制消失
- UIAlertView的自动消失,手动消失和自定制消失
- UIAlertView的自动消失,手动消失和自定制消失
- UIAlertView的自动消失,手动消失和自定制消失
- UIAlertView的自动消失,手动消失和自定制消失
- UIAlertView的自动消失、手动消失、自定义消失
- 图片的定时自动消失
- 自动消失的alert框
- java 自动提示框 自动消失和点击消失 渐变效果
- java 自动提示框 自动消失和点击消失 渐变效果 .
- selenium使用chrome抓取自动消失弹框的方法
- 启动应用显示弹窗动画,倒计时后自动消失
- JAVA 对象序列化
- 变量的存储方式及作用域
- “印刷文化”的光环,没我们想得那么荣耀
- java面试题
- 九章算法面试题20 寻找重复的URL
- 自动消失的弹窗效果
- 个人经验总结:MySQL数据库优化技巧集锦
- Differences in Addressable Memory
- string and stringstream
- Maven安装jar
- 使用storyboard实现页面跳转,简单的数据传递(转载)
- 鸡啄米vc++2010系列4(消息机制)
- 工作中用到的一点知识点总结
- 11 Rules All Programmers Should Live By