0👍
Your background image’s size is larger.
Add background-size: cover;
property
- [Vuejs]-Ionic vue background geolocation tracking stops after 5 minute
- [Vuejs]-Using a method as data inside the app parent
0👍
I think your issue is that you are missing the height
css attribute. Assuming that this is a block element, you would need that in addition to the width. Otherwise, your element would have 0 height, effectively meaning that none of the background would show.
.b-icon#historyDoc {
background: url("../assets/history.png") center;
background-size: contain;
height: 32px;
width: 32px;
}
If this is an inline element, you may need to add display: block;
as well.
- [Vuejs]-How do I assign a axios put request's response to variables
- [Vuejs]-Splash screen's letters are double in ionic
Source:stackexchange.com