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
<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: