如何让 holder.js 与 bootstrap 4 一起工作?
How do I get holder.js to work with bootstrap 4?
他们的例子是这样的:
<img class="card-img-top" data-src="holder.js/100%x180/" alt="Card image cap">
所以我想如果我包括:
<script src="https://cdnjs.cloudflare.com/ajax/libs/holder/2.9.0/holder.js"></script>
它会起作用,但它不起作用。
示例已过时。 Percentage widths should be specified with a p, not a % sign:
<img class="card-img-top" data-src="holder.js/100px180/" alt="Card image cap">
他们的例子是这样的:
<img class="card-img-top" data-src="holder.js/100%x180/" alt="Card image cap">
所以我想如果我包括:
<script src="https://cdnjs.cloudflare.com/ajax/libs/holder/2.9.0/holder.js"></script>
它会起作用,但它不起作用。
示例已过时。 Percentage widths should be specified with a p, not a % sign:
<img class="card-img-top" data-src="holder.js/100px180/" alt="Card image cap">