6

以下のデモ コードでは、data-src を使用していますが、img src は使用していません。画像はどのように適用されますか?JavaScriptはこれを何らかの形で変更しますか?

http://v4-alpha.getbootstrap.com/components/card/

 <div class="card">
      <img class="card-img-top" data-src="..." alt="Card image cap">
      <div class="card-block">
        <h4 class="card-title">Card title</h4>
        <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
        <a href="#" class="btn btn-primary">Button</a>
      </div>
    </div>
4

1 に答える 1