<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>画椭圆</title> <style> div{ width:200px; height:100px; background-color:#ffa500; border-radius:100px/50px; } </style> </head> <body> <div></div> </body> </html>
首先来一个宽高不同的div
然后宽高分别减半写到border-radius后面,格式如下:
border-radius:100px/50px;
来源:https://www.cnblogs.com/blogsky-520/p/12513507.html