Exquisite arrow code with pure css

Source: Internet
Author: User
Figure:
HTML code:
  
The code is as follows: Copy code
<Div class = "pre-wrap"> <div class = "pre"> <div class = "pre1"> </div> <div class = "pre2"> </ div> </div>
 
CSS code:
. Pre-wrap {width: 200px; height: 120px; margin: 50px auto 0; border: 2px solid # F00; border-radius: 4px; position: relative ;}. pre {width: 80px; height: 80px; position: absolute; top: 20px; left: 40px ;}. pre1 {border-width: 40px; border-color: transparent # F30 transparent ;}. pre2 {border-width: 40px; border-color: transparent # FFF transparent; position: relative; top:-80px; left: 15px ;}. pre1 ,. pre2 {/***** set border-style: dashed; enable ie6 to support border transparency *****/border-style: dashed solid dashed; /***** set the container width and height to 0 *****/width: 0; height: 0;/***** remove the default height under ie6, set the following attributes: */line-height: 0; font-size: 0; overflow: hidden ;}

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.