1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | <view class= "container" > <image src= "/images/post/sls.jpg" class= "head-image" ></image> <view class= "author-date" > <image src= "/images/avatar/3.png" class= "avatar" ></image> <text class= "author" >作者</text> <text class= "const-text" >发布与</text> <text class= "date" >三天前</text> </view> <text class= "title" >我是title</text> <view class= "tool" > <view class= "circle-img" > <image src= "/images/icon/collection.png" ></image> <image class= "share-img" src= "/images/icon/share.png" ></image> </view> <view class= "horizon" ></view> </view> <text class= "detail" > 我是内容 </text> </view> ---------post-detail.wxss .container { display : flex; flex- direction : column; } .head-image { width : 100% ; height : 460 rpx; } .author-date { flex- direction : row; margin-left : 30 rpx; margin-top : 20 rpx; } .avatar { height : 64 rpx; width : 64 rpx; vertical-align : middle ; } .author { font-size : 30 rpx; font-weight : 300 ; margin-left : 20 rpx; vertical-align : middle ; color : #666 ; } .const-text { font-size : 24 rpx; color : #999 ; margin-left : 20 rpx; } .date { font-size : 24 rpx; margin-left : 30 rpx; vertical-align : middle ; color : #999 ; } .title { margin-left : 40 rpx; font-size : 36 rpx; font-weight : 700 ; margin-top : 30 rpx; letter-spacing : 2px ; color : #4b556c ; } .tool { margin-top : 20 rpx; } .circle-img { float : right ; margin-right : 40 rpx; vertical-align : middle ; } .circle-img Image { width : 90 rpx; height : 90 rpx; } .share-img { margin-left : 30 rpx; } .horizon { width : 660 rpx; height : 1px ; background-color : #e5e5e5 ; vertical-align : middle ; position : relative ; top : 46 rpx; margin : 0 auto ; z-index : -99 ; } .detail { color : #666 ; margin-left : 30 rpx; margin-top : 20 rpx; margin-right : 30 rpx; line-height : 44 rpx; letter-spacing : 2px ; } |
老师不好意思,打扰您,这个问题我不太懂哪里出了问题,好像上面的空白被固定下来了一样,,怎么改都在,而且作者那一行一直都是居中
4年同步微信官方迭代,累计20000+人学习, 比微信官方更火爆!
了解课程