search

Home  >  Q&A  >  body text

vue.js - What should I do if weex does not have a background image attribute?

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?

滿天的星座滿天的星座2761 days ago1566

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-22 11:55:32

    You can use the image tag instead. Another way is to customize the container.

    reply
    0
  • 巴扎黑

    巴扎黑2017-06-22 11:55:32

    When the src of img is empty, the background image address is used as the default path.
    :src="url||defaultUrl"

    reply
    0
  • Cancelreply