Bootstrap rounded corners, rounded avatars and responsive pictures/css3 rounded corners, picture shadows effect Summary

Source: Internet
Author: User

1, Bootstrap provides four kinds of styles for class, namely:
. img-rounded: Rounded corners (IE8 not supported), add border-radius:6px to get picture fillet
. Img-circle: Round (IE8 not supported), add border-radius:50% to make the whole picture turn round
. Img-thumbnail: Thumbnail feature, add some padding (padding) and a gray border
. img-responsive: Picture-responsive (adaptive screens of all sizes)

How to use:
(1) Bootstrap library Import does not say, the original image as follows (PNG, with a small fillet, background transparent):

(2) Add the class style directly to class:



The effect is as follows:

(3) Take the fillet as an example, add a shadow effect to compare:
Add the following code:

Such as:

Continue to fix the fillet and add the following code:

Such as:

Bootstrap rounded corners, rounded avatars and responsive pictures/css3 rounded corners, picture shadows effect Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.