mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
修改笔记列表中的图片,只是设置最大宽度
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
<span v-if="item.contentType != 3">{{ item.content }}</span>
|
<span v-if="item.contentType != 3">{{ item.content }}</span>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<template v-for="img in item.content">
|
<template v-for="img in item.content">
|
||||||
<img @click="showBigImg(fileBaseUrl + img)" :src="fileBaseUrl + img" alt=""/>
|
<img @click="showBigImg(fileBaseUrl + img)" :src="fileBaseUrl + img" alt="" style="max-width: 400px;"/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
<span v-if="item.contentType != 3">{{ item.content }}</span>
|
<span v-if="item.contentType != 3">{{ item.content }}</span>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<template v-for="img in item.imgList">
|
<template v-for="img in item.imgList">
|
||||||
<img style="max-height:145px;max-width:140px" crossOrigin="anonymous" :src="fileBaseUrl + img" alt=""/>
|
<img style="max-width:400px" crossOrigin="anonymous" :src="fileBaseUrl + img" alt=""/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -796,8 +796,7 @@ export default {
|
|||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
img{
|
img{
|
||||||
width: 140px;
|
max-width: 400px;
|
||||||
height: 175px;
|
|
||||||
margin-right: 23px;
|
margin-right: 23px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user