<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>畫橢圓</title> <style> div{ width:200px; height:100px; background-color:#ffa500; border-radiu ...
<!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;