You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

91 lines
1.3 KiB

  1. <template>
  2. <div id="app">
  3. <router-view/>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'App',
  9. mounted() {
  10. },
  11. metaInfo: {
  12. title: "",
  13. meta: [
  14. { name: "viewport", content: "width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no" },
  15. { name: "apple-mobile-web-app-capable", content: "yes" },
  16. ],
  17. },
  18. }
  19. </script>
  20. <style lang="less">
  21. .size{
  22. width: 100%;
  23. height: 100%;
  24. }
  25. html,body{
  26. .size;
  27. margin: 0;
  28. padding: 0;
  29. }
  30. #app {
  31. .size;
  32. }
  33. img{
  34. width: 100%; height: 100%; max-width: 100%;
  35. }
  36. .max1{
  37. white-space: nowrap;
  38. text-overflow: ellipsis;
  39. overflow: hidden;
  40. word-break: break-all;
  41. }
  42. .max2{
  43. text-overflow: -o-ellipsis-lastline;
  44. overflow: hidden;
  45. text-overflow: ellipsis;
  46. display: -webkit-box;
  47. -webkit-line-clamp: 2;
  48. line-clamp: 2;
  49. -webkit-box-orient: vertical;
  50. }
  51. .max4{
  52. text-overflow: -o-ellipsis-lastline;
  53. overflow: hidden;
  54. text-overflow: ellipsis;
  55. display: -webkit-box;
  56. -webkit-line-clamp: 4;
  57. line-clamp: 4;
  58. -webkit-box-orient: vertical;
  59. }
  60. .title{
  61. color: #333;
  62. }
  63. .article .title,.article .info{
  64. text-align: center;
  65. margin: 10px;
  66. }
  67. .article .info{
  68. color: #999;
  69. }
  70. .article .content p{
  71. text-indent: 2em;
  72. margin-bottom: 20px;
  73. line-height: 1.5rem;
  74. }
  75. .article .content span{
  76. line-height: 1.5rem;
  77. }
  78. </style>