HTML5作业5彩色块
拼个四彩板
代码如下
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title></title> <style type="text/css"> div{ width: 0px; height: 0px; border:100px solid yellow; border-bottom-color:green ; border-top-color:blue ; border-left-color:red ; } </style> </head> <body> <div> </div> </body> </html>
运行结果