Can't figure out how to use Bootstrap thumbnail component

后端 未结 1 1870
鱼传尺愫
鱼传尺愫 2021-02-07 22:29

I\'m trying to use Bootstrap\'s thumbnail component to display a list of product categories with thumbnail images. I want users to click the thumbnails to go to the category.

1条回答
  •  悲哀的现实
    2021-02-07 22:42

    Holder.js is just image placeholder framework based on javascript and inline images. It is used by bootstrap to create sample images. There is no need in this library on production. So instead of using data-src attribute and holder.js library you should use src attribute and markup like:

    
    

    You can also need to disable text underline in image caption. Just use css:

    a.thumbnail:hover {
        text-decoration: none;
    }
    

    Example: http://jsfiddle.net/M3fpA/46/

    0 讨论(0)
提交回复
热议问题