Bootstrap

Web前端入门到实战:CSS实现半圆、圆、不同度数圆角效果

在css3中实现半圆、圆、不同度数的圆角都是通过border-radius来实现的,

接下来将展示通过行内样式来实现以下效果!

颜色随机选的~~

 代码如下,需要自取

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div style="width: 200px; height: 100px; background-color: rgb(0,123,8); border-radius: 50%;"></div>

  <div style="width: 200px; height: 200px; background-color: rgb(255,195,206); border-radius: 10px 20px 30px 40px;"></div>

  <div style="width: 200px; heig
;