主頁
CSS
CSS 圓角
Tryit: 建立橢圓形角
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #rcorners1 { border-radius: 50px / 15px; background: #73AD21; padding: 20px; width: 200px; height: 150px; } #rcorners2 { border-radius: 15px / 50px; background: #73AD21; padding: 20px; width: 200px; height: 150px; } #rcorners3 { border-radius: 50%; background: #73AD21; padding: 20px; width: 200px; height: 150px; } </style> </head> <body> <h1>The border-radius Property</h1> <p>Elliptical border - border-radius: 50px / 15px:</p> <p id="rcorners1"></p> <p>Elliptical border - border-radius: 15px / 50px:</p> <p id="rcorners2"></p> <p>Ellipse border - border-radius: 50%:</p> <p id="rcorners3"></p> </body> </html>