msgBox.css 820 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*webBox begin*/
  2. .msgBox{
  3. position:fixed;
  4. top:30%;
  5. width:100%;
  6. left:0;
  7. text-align:center;
  8. z-index:99992;
  9. }
  10. .msgBox span{
  11. display:inline-block;
  12. *display:inline;
  13. *zoom:1;
  14. margin:auto;
  15. background:#000;
  16. filter:Alpha(opacity=60);
  17. background:rgba(0,0,0,0.6);
  18. color:#fff;
  19. padding:5px 20px;
  20. font-size:14px;
  21. border-radius:5px;
  22. -webkit-animation:msgBoxAni 2s linear;
  23. animation:msgBoxAni 2s linear;
  24. opacity:0;
  25. top:10px;
  26. position:relative;
  27. }
  28. @-webkit-keyframes msgBoxAni {
  29. 0% {
  30. opacity:0;
  31. top:10px;
  32. }
  33. 10% {
  34. opacity:1;
  35. top:0px;
  36. }
  37. 90% {
  38. opacity:1;
  39. top:0px;
  40. }
  41. 100% {
  42. opacity:0;
  43. top:-10px;
  44. }
  45. }
  46. @keyframes msgBoxAni {
  47. 0% {
  48. opacity:0;
  49. top:10px;
  50. }
  51. 20% {
  52. opacity:1;
  53. top:0px;
  54. }
  55. 80% {
  56. opacity:1;
  57. top:-20px;
  58. }
  59. 100% {
  60. opacity:0;
  61. top:-30px;
  62. }
  63. }
  64. /*webBox end*/