Home > front end >  Display picture is not successful, has been on the path in a PNG image
Display picture is not successful, has been on the path in a PNG image

Time:10-05



<script>
Export the default {
Data ()
{
Return {
MSG: 'shopping mall',
ImgUrl: the require ("../../assets/images/location. PNG ')
}
}
}
</script>

<style scoped>
. The search bar - {
Height: 2.2 rem;
Background - color: darkmagenta;
The line - height: 2.2 rem;
}
The - input {
width: 100%;
Height: 1.3 rem;
Border - top: 0 px;
Border - right: 0 px;
Border - bottom: 1 px solid # FFF! Important;
Background - color: darkmagenta;
Color: aliceblue;
}
. The location - icon {
Padding - top:. 2 rem;
Padding - left: 3 rem

}

</style>

CodePudding user response:

V - bind: SRC="https://bbs.csdn.net/topics/imgUrl"

CodePudding user response:

Upstairs, positive solutions: SRC=https://bbs.csdn.net/topics/

CodePudding user response:

reference 1st floor has __ON response:
v - bind: SRC="https://bbs.csdn.net/topics/imgUrl"

Hello, or wrong, I can add you ask

CodePudding user response:

ImgUrl: the require ("../../assets/images/location. PNG ') & lt; Img SRC="https://bbs.csdn.net/topics/imgUrl" width="100%" heigth="100%"/& gt;
To imgUrl: '../../assets/images/location. PNG '
<: img SRC="https://bbs.csdn.net/topics/imgUrl" width="100%" heigth="100%"/& gt;
  • Related