Home >Web Front-end >Bootstrap Tutorial >A brief discussion on how to implement bootstrap responsive images

A brief discussion on how to implement bootstrap responsive images

青灯夜游
青灯夜游forward
2020-12-29 18:50:113985browse

This article will introduce to you bootstrapHow to implement responsive images. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

A brief discussion on how to implement bootstrap responsive images

Related tutorial recommendations: "bootstrap Tutorial"

Two common forms of responsive images in project applications :

are: the screen size changes, and the picture layout changes accordingly. In order to adapt to the conversion between PC and mobile devices, two sets of image resources are used.

1: The screen size changes, and the picture layout changes accordingly

<div>
       <div>
           <div>
               <img  alt="A brief discussion on how to implement bootstrap responsive images" >
           </div>
           <div>
            <img  alt="A brief discussion on how to implement bootstrap responsive images" >
            </div>
            <div>
                <img  alt="A brief discussion on how to implement bootstrap responsive images" >
            </div>
            <div>
                <img  alt="A brief discussion on how to implement bootstrap responsive images" >
            </div>
        </div>
   </div>

Effect:

1. Larger than the desktop picture (>996px)
A brief discussion on how to implement bootstrap responsive images
2. Tablet (>768px A brief discussion on how to implement bootstrap responsive images
3. Mobile phone (A brief discussion on how to implement bootstrap responsive images
2: In order to adapt to the conversion between PC and mobile devices, Using two sets of image resources

<div>
       <img  alt="A brief discussion on how to implement bootstrap responsive images" >
       <img  alt="A brief discussion on how to implement bootstrap responsive images" >
   </div>

Two sets of image resources will help prevent page lags and save traffic.

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of A brief discussion on how to implement bootstrap responsive images. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete