|
- <template>
- <div id="app">
- <router-view/>
- </div>
- </template>
-
- <script>
- export default {
- name: 'App',
- mounted() {
- },
- metaInfo: {
- title: "",
- meta: [
- { name: "viewport", content: "width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no" },
- { name: "apple-mobile-web-app-capable", content: "yes" },
- ],
- },
- }
- </script>
-
- <style lang="less">
- .size{
- width: 100%;
- height: 100%;
- }
- html,body{
- .size;
- margin: 0;
- padding: 0;
- }
- #app {
- .size;
- }
-
- img{
- width: 100%; height: 100%; max-width: 100%;
- }
-
- .max1{
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
-
- }
-
- .max2{
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
-
-
- .max4{
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 4;
- line-clamp: 4;
- -webkit-box-orient: vertical;
- }
-
- .title{
- color: #333;
- }
- .article .title,.article .info{
- text-align: center;
- margin: 10px;
- }
- .article .info{
- color: #999;
- }
- .article .content p{
- text-indent: 2em;
- margin-bottom: 20px;
- line-height: 1.5rem;
- }
- .article .content span{
- line-height: 1.5rem;
- }
-
-
-
- </style>
|