Commit c6842262 by TengFengLian

动态图片高度自适应

parent 23a13354
......@@ -8,8 +8,8 @@
<view class="date row con-s">
<text>{{notice.date}}</text>
</view>
<view class="cover">
<image src="{{notice.cover}}" mode="center"></image>
<view class="cover" wx:if="{{notice.cover !== ''}}">
<image src="{{notice.cover}}" mode="widthFix"></image>
</view>
<view class="describe">
<parser html="{{notice.describe}}"/>
......
......@@ -25,7 +25,7 @@
.cover image {
width: 670rpx;
height: 288rpx;
/* height: 288rpx; */
/* margin-top: 14rpx; */
}
......
......@@ -18,7 +18,7 @@
<parser html="{{item.describe}}"/>
</view>
<view class="notice-cover" wx:if="{{item.cover !== ''}}">
<image src="{{item.cover}}" mode="center"></image>
<image src="{{item.cover}}" mode="widthFix"></image>
</view>
</view>
</block>
......
......@@ -52,6 +52,6 @@
.notice-cover image {
width: 670rpx;
height: 376rpx;
/* height: 376rpx; */
margin-top: 40rpx;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment