漂亮 动态效果 信息提示(jquery版)
生活随笔
收集整理的這篇文章主要介紹了
漂亮 动态效果 信息提示(jquery版)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
簡單,漂亮,動畫效果,用戶體驗好!?
這個效果是在頁面頭部出現的,出現一下會自動隱藏,上面有x那個提示就要手動關閉一下,其他的都是自動隱藏的!?
溫馨提示:基于jquery 1.6.2 版本!
?
調用方式:?
jquery版:?
美觀樣式 .group { display: block; } .group:after { clear: both; content: "."; display: block; height: 0; visibility: hidden; } .group { min-height: 1%; } * html .group { height: 1%; } html, body, div,p{ background: none repeat scroll 0 0 transparent; border: 0 none; font-size: 100%; margin: 0; outline: 0 none; vertical-align: baseline; } body { color: #444444; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 75%; line-height: 1; } #message-dock { background-color: #164673; color: #FFFFFF; line-height: 1.75em; padding: 10px; position: fixed; top: -60px; width: 100%; z-index: 9999; } #message-dock a { color: #FFFFFF; font-weight: bold; text-decoration: underline; } #message-dock p { border-radius: 5px 5px 5px 5px; float: left; padding: 5px 6px; } #message-dock .dismiss { background: url("msg.png") repeat scroll -67px -180px #A12A2A; border-radius: 0 5px 5px 0; display: none; float: left; height: 21px; padding-left: 10px; text-indent: -999999px; width: 20px; cursor: pointer; } .sprite { background: url("msg.png") no-repeat scroll 0 0 transparent; display: inline-block; vertical-align: top; } #message-sleeve { margin: 0 auto; max-width: 1200px; min-width: 1000px; } .fixed #message-sleeve { width: 1000px; } #message-text { float: left; font-size: 1.16667em; padding: 0 10px 0 0; } .success p { background-color: #7AA13D; } .alert p { background-color: #FFF095; color: #333333; } .alert a { color: #333333 !important; } .error p { background-color: #A12A2A; padding-right: 0 !important; } .error #message-text { padding-right: 0; } .error .dismiss { display: block !important; } .error .message-icon, .alert .message-icon { background-position: 0 -249px; } .message-icon { background-position: -21px -249px; float: left; height: 21px; margin-right: 6px; position: relative; width: 21px; }
附件:?
完畢!
? ? 本文轉自曾祥展博客園博客,原文鏈接:http://www.cnblogs.com/zengxiangzhan/archive/2011/08/01/2124377.html,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的漂亮 动态效果 信息提示(jquery版)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用protostuff进行序列化
- 下一篇: 第六次会议(4.15)