Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template background-image is not work. #10869

Closed
chenweigh opened this issue Nov 27, 2019 · 1 comment
Closed

template background-image is not work. #10869

chenweigh opened this issue Nov 27, 2019 · 1 comment

Comments

@chenweigh
Copy link

@chenweigh chenweigh commented Nov 27, 2019

Version

"vue": "^2.6.10",
"vue-router": "^3.0.3",
 "vuex": "^3.0.1"

Problem

avatar = "https://static1.bcjiaoyu.com/bcgame_face2face/13621694870/b'98046ec7cf70078510f33b385ad61069'_p.jpg-500x386"

.userinfo__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: solid 1px #fc9608;
  background-color: #e1e1e1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* background-image: url("https://static1.bcjiaoyu.com/bcgame_face2face/13621694870/b'98046ec7cf70078510f33b385ad61069'_p.jpg-500x386"); */
  cursor: pointer;
}

<div class="userinfo__avatar" :style="`background-image:url(${avatar})`" ></div>

The photo is not show in template, and show in style.
so why ? I need help.

@vue-bot

This comment has been minimized.

Copy link
Contributor

@vue-bot vue-bot commented Nov 27, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@vue-bot vue-bot closed this Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.