/* 用flex方式布局上中下页面结构 */ .article { /* display: flex; width: 100%; height: 100vh; flex-direction: column; overflow: auto; */ } .article .main { flex-grow: 1; padding-top: 40px; /* background-color: #eeeeee; */ } .van-nav-bar { height: 40px !important; z-index: 999 !important; } .common { /* background-color: #fff; */ padding: 0 15px; } /* 搜索框 */ .van-search__content { border-radius: 5px !important; } .flex { display: flex; } .flex1 { display: flex; justify-content: space-between; } .flex2 { display: flex; justify-content: space-between; flex-wrap: wrap; } .flex3 { display: flex; /* justify-content: space-between; */ flex-wrap: wrap; } .flex4 { display: flex; align-items: center; } .flex5 { display: flex; flex-direction: column; text-align: left; margin-bottom: 15px; } /* 图片 */ .imageBox { position: relative; } .imageBox img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; max-width: 100%; max-height: 100%; } /* 固定定位不能设置高度 */ .footer { padding-top: 40px; } /* css首行缩进两个字符 */ .text_indent { text-indent: 35px; } .blank_gap { margin-top: 6px; margin-bottom: 6px; } .text-flow { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; } .autoImg { width: auto; height: auto; max-width: 100%; max-height: 100%; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; }