vue.js - What should I do if weex does not have a background image attribute?
滿天的星座2017-06-22 11:53:32
0
2
1519
The height of the background can be determined, but the width of the background is determined based on the width of the displayed data; How can weex achieve this effect without background-image?
You can use the
image
tag instead. Another way is to customize the container.When the src of img is empty, the background image address is used as the default path.
:src="url||defaultUrl"