Web front-end questions use 2, 3, and 5 div to draw a large red cross from each other

Source: Internet
Author: User
Tags border color

[HTML]View PlainCopy
  1. <! DOCTYPE HTML>
  2. <!--two x div-->
  3. <html>
  4. <body>
  5. <div style="Width:100%;height:200px;margin-top:500px;location:center;border:none; Background-color:red;position:absolute ">
  6. </div>
  7. <div style="Width:16%;height:1000px;margin-left:42%;margin-right:42%;margin-top:0px;border: None;background-color:red;style=clear:both;position:absolute ">
  8. </div>
  9. </body>
  10. </html>
[HTML]View PlainCopy
  1. <! DOCTYPE HTML>
  2. <!--three x div-->
  3. <html>
  4. <body>
  5. <div style="Width:100%;height:100px;margin-top:500px;location:center;border:none; Background-color:red;position:absolute "></div>
  6. <div style="Width:100%;height:100px;margin-top:400px;location:center;border:none; Background-color:red;position:absolute "></div>
  7. <div style="Width:16%;height:1000px;margin-left:42%;margin-right:42%;margin-top:0px;border:none; Background-color:red;position:absolute ">
  8. </div>
  9. </body>
  10. </html>
[HTML]View PlainCopy
  1. <! DOCTYPE HTML>
  2. <!--five x div-->
  3. <html>
  4. <body>
  5. <div style="Width:100%;height:65px;margin-top:500px;location:center;border:none; Background-color:red;position:absolute "></div>
  6. <div style="Width:100%;height:65px;margin-top:435px;location:center;border:none;background-color : Red;position:absolute "></div>
  7. <div style="Width:100%;height:65px;margin-top:370px;location:center;border:none; Background-color:red;position:absolute "></div>
  8. <div style="Width:8%;height:1000px;margin-left:42%;margin-right:50%;margin-top:0px;border:none; Background-color:red;position:absolute "></div>
  9. <div style="Width:8%;height:1000px;margin-left:49%;margin-right:42%;margin-top:0px;border:none ; Background-color:red;position:absolute "></div>
  10. </body>
  11. </html>

Law II:

The specific idea is: Two, create a rectangle with a div, then copy one, rotate 90 degrees with the center point, two merges, three, create a rectangle with a div, then copy one, rotate the center point 90 degrees, two merges, then wrap an empty div box outside, five, the Red Cross symbol consists of five squares , representing five continents, draw a square, then copy it into five, then put five squares in position, make up the Red Cross shape, Circle five squares, select weld option, then fill Red (c:0,m:100,y:100,k:0), remove border color.

[HTML]View PlainCopy
  1. <! DOCTYPE HTML>
  2. <!--two x div-->
  3. <html>
  4. <body>
  5. <div style="Width:1000px;height:200px;margin-left:180px;margin-top:500px;location:center;border: None;background-color:red;position:absolute "></div>
  6. <div style="Width:1000px;height:200px;margin-left:180px;margin-top:500px;location:center;border: None;background-color:red;position:absolute;transform:rotate (90deg); " ></div>
  7. </body>
  8. </html>
[HTML]View PlainCopy
  1. <! DOCTYPE HTML>
  2. <!--three x div-->
  3. <html>
  4. <body>
  5. <div type="Margin:auto">
  6. <div style="Width:1000px;height:200px;margin-left:180px;margin-top:500px;location:center;border: None;background-color:red;position:absolute "></div>
  7. <div style="Width:1000px;height:200px;margin-left:180px;margin-top:500px;location:center; Border:none;background-color:red;position:absolute;transform:rotate (90deg); " ></div>
  8. </div>
  9. </body>
  10. </html>
[HTML]View PlainCopy
    1. <! DOCTYPE HTML>
    2. <!--five x div-->
    3. <html>
    4. <body>
    5. <div style="Width:200px;height:200px;margin-left:500px;margin-top:100px;border:none; Background-color:red;position:absolute "></div>
    6. <div style="Width:200px;height:200px;margin-left:300px;margin-top:300px;border:none; Background-color:red;position:absolute "></div>
    7. <div style="Width:200px;height:200px;margin-left:500px;margin-top:300px;border:none; Background-color:red;position:absolute "></div>
    8. <div style="Width:200px;height:200px;margin-left:700px;margin-top:300px;border:none; Background-color:red;position:absolute "></div>
    9. <div style="Width:200px;height:200px;margin-left:500px;margin-top:500px;border:none; Background-color:red;position:absolute "></div>
    10. </body>
    11. </html>

Web front-end questions use 2, 3, and 5 div to draw a large red cross from each other

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.