No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. bmw20075112
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    bmw20075112

    @bmw20075112

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    bmw20075112 Follow

    Latest posts made by bmw20075112

    • Can't load responsive images in q-img

      The problem is when I use srcset to call my responsive pictures, I always get an error
      // GET http://localhost:8080/~assets/banner-lg 404 (Not Found) //

      <q-img src="~assets/banner-sm.jpg"
             srcset="~assets/banner-sm.jpg 400w,
                    ~assets/banner-lg.jpg 2x"
             :ratio="16/9"
      />
      

      擷取.PNG

      Whenever I take out the srcset part, the picture shows up successfully.

      <q-img src="~assets/banner-sm.jpg"/>
      

      Do I need a special way to call my pictures in srcset?
      Since the doc uses CDN Link to call pictures
      Can anyone tell me how to call pictures in assets folder in correct way?

      posted in Help
      B
      bmw20075112