这个代码我试了,内容还是没加在图片上,反而在图片的下方,请问我这是什么情况
/
<div :class="{hasTagsView:needTagsView}" class="main-container">
<el-image
style="width: 100%; height: 50px"
:src="require('@/assets/images/top-logo.png')"
@load="loadImage"></el-image>
<div v-show="testShow">
<p>
<span style="font-family:'应用字体 Regular', '应用字体';">gdhgfhdghg!</span>
</p>
<p>
<span style="font-family:'应用字体 Regular', '应用字体';">gfcdghfhdttgh!</span>
</p>
</div>
</div>
data(){
return{
testShow:false
}
},
methods: {
loadImage(e){
console.log(e);
this.testShow = true;
}
}