1. 程式人生 > >border-radius製作四色正方形

border-radius製作四色正方形

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>Document</title>
   <style>
   div{width: 0;
      border-top: 50px solid red;
      border-bottom: 50px solid yellow;
      border-left: 50px solid blue;
      border-right: 50px solid green
} </style> </head> <body> <div> </div> </body> </html>