优惠券分享

slideshow.css 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. *,
  2. ::before,
  3. ::after{
  4. padding: 0;
  5. margin: 0;
  6. -webkit-box-sizing: border-box;/*兼容移动端主流浏览器*/
  7. box-sizing: border-box;
  8. -webkit-tap-highlight-color: transparent;/*清除移动端点击高亮效果*/
  9. }
  10. body{
  11. font-family:Microsoft YaHei,sans-serif;/*移动端默认的字体*/
  12. font-size: 14px;
  13. color: #333;
  14. }
  15. ol,ul{
  16. list-style: none;
  17. }
  18. /*清除浮动*/
  19. .clearfix::before,
  20. .clearfix::after{
  21. content: "";
  22. display: block;
  23. height: 0;
  24. line-height: 0;
  25. visibility: hidden;
  26. clear: both;
  27. }
  28. .layout{
  29. width: 100%;
  30. max-width: 750px;
  31. min-width: 320px;
  32. margin: 0 auto;
  33. position: relative;
  34. }
  35. .banner{
  36. width: 100%;
  37. overflow: hidden;
  38. position: relative;
  39. }
  40. .banner ul:first-child{
  41. width: 1000%;
  42. -webkit-transform: translateX(-10%);
  43. transform: translateX(-10%);
  44. }
  45. .banner ul:first-child li{
  46. width: 10%;
  47. float: left;
  48. }
  49. .banner ul:first-child li a{
  50. display: block;
  51. width: 100%;
  52. }
  53. .banner ul:first-child li a img{
  54. width: 100%;
  55. display: block;
  56. }
  57. .banner ul:last-child{
  58. position: absolute;
  59. bottom: 6px;
  60. width: 100%;
  61. text-align: center;
  62. }
  63. .banner ul:last-child li{
  64. width: 6px;
  65. height: 6px;
  66. border: 1px solid #fff;
  67. border-radius: 50%;
  68. display: inline-block;
  69. margin-left: 10px;
  70. }
  71. .banner ul:last-child li:first-child{
  72. margin-left: 0;
  73. }
  74. .banner ul:last-child li.now{
  75. background: #fff;
  76. }