Take minutes to get rid of all the triangles in the CSS that make you bothered

Source: Internet
Author: User

Words don't say much, direct

. triangle-one {
Display:inline-block;
border-top:50px Red Solid;
border-right:50px Green solid;
border-bottom:50px Yellow Solid;
border-left:50px Blue Solid;
}
. triangle-six {
Display:inline-block;
border:50px transparent solid;
border-bottom:50px Yellow Solid;
}
. triangle-eight {
Display:inline-block;
border:50px transparent solid;
border-left:30px Yellow Solid;
border-bottom:0;
}

Using the Border Override property:

<!    DOCTYPE html>

  

A sharp angle like this is done like this:

<!    DOCTYPE html>

                               /    & nbsp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                                 &NBSP                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp           small pictures can go to http://www.bootcss.com/p/font-awesome/to download third-party modules,

Corresponds to a Unicode encoded picture

Font Awesome provides you with scalable vector icons that you can change using all the features provided by CSS, including: size, color, shading, or any other supported effect.

How to import:

<link href= ". /font-awesome/css/font-awesome.css "type=" Text/css "rel=" stylesheet ">



Take minutes to get rid of all the triangles in the CSS that make you bothered

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.