@charset "UTF-8"; /* 需要放到文件最上面 */ /* 水平间距 */ /* 水平间距 */ /* 以下变量是默认值,如不需要修改可以不用给下面的变量重新赋值 */ /* 水平间距 */ .my-box { height: 100vh; background: #fff; overflow-y: auto; } .my-box .my-content { display: flex; flex-direction: column; align-items: center; padding-bottom: 80rpx; } .my-box .my-top { height: 260rpx; background-image: url("https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMDUzMDJ8MHwxfHNlYXJjaHw1fHxhYnN0cmFjdHxlbnwxfHx8fDE2NTI4OTYzNTU&ixlib=rb-1.2.1&q=80&w=1080"); background-position: center center; background-size: cover; background-repeat: no-repeat; width: 100%; } .my-box .my-avatar { width: 200rpx; height: 200rpx; border-radius: 50%; margin-top: -100rpx; border: 6rpx solid #fff; background: #eee; } .my-box .name { font-size: 20px; font-weight: 700; margin: 10rpx 0; } .my-box .organization { color: #8c8c8c; font-weight: 300; } .my-box .my-tab { width: 100%; padding: 0 30rpx; box-sizing: border-box; margin: 40rpx 0; } .my-box .my-tab .tab-box { height: 160rpx; border-radius: 24rpx; box-shadow: 1px 1px 12px rgba(164, 164, 164, 0.25); display: flex; align-items: center; } .my-box .my-tab .tab-item { flex: 1; text-align: center; } .my-box .my-tab .tab-number { font-size: 40rpx; font-weight: 600; } .my-box .my-tab .tab-text { font-size: 24rpx; font-weight: 300; margin-top: 10rpx; } .my-box .my-list { width: 100%; padding: 0 30rpx; box-sizing: border-box; } .my-box .my-list .my-item { display: flex; align-items: center; border-bottom: 2rpx solid #d9d9d9; padding: 20rpx 0; } .my-box .my-list .my-item:first-child { border-top: 2rpx solid #d9d9d9; } .my-box .my-list .my-icon { width: 80rpx; height: 80rpx; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20rpx; background: #c1c0c8; } .my-box .my-list .my-forward { height: 40rpx; } .my-box .my-list .item-content { flex: 1; width: 0; overflow: hidden; font-weight: 700; }