banner.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="banner">
  3. <div class="img"/>
  4. <div class="banner-list">
  5. <div class="container">
  6. <ul class="list-inline">
  7. <li>U 智慧 · 企业</li>
  8. <li>U 智慧 · 园区</li>
  9. <li>U 智慧 · 政务</li>
  10. </ul>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'Banner'
  18. }
  19. </script>
  20. <style scoped type="text/scss" lang="scss">
  21. .banner{
  22. margin-top:54px;
  23. .img{
  24. height:450px;
  25. background: url(/img/banner/1.png)no-repeat center center;
  26. }
  27. .banner-list{
  28. height:90px;
  29. background: #126a8d;
  30. padding-top:20px;
  31. ul{
  32. li{
  33. width:32%;
  34. height:50px;
  35. line-height: 50px;
  36. text-align: center;
  37. border-right:1px solid #45849a;
  38. &:before{
  39. content: '';
  40. display:inline-block;
  41. width:30px;
  42. height:30px;
  43. position:relative;
  44. top:8px;
  45. left:-20px;
  46. }
  47. &:first-child:before{
  48. background: url(/icon/enterprise.png)no-repeat;
  49. }
  50. &:nth-child(2):before{
  51. background: url(/icon/developers.png)no-repeat;
  52. }
  53. &:last-child{
  54. border:none;
  55. &:before{
  56. background: url(/icon/government.png)no-repeat;
  57. }
  58. }
  59. }
  60. }
  61. }
  62. }
  63. </style>