CSS border-radius 属性示例

CSS border-radius1 个文件更新于 2026-04-06
html公开前 25 行,完整代码需登录
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS border-radius 属性示例</title>
    <style>
      .radius-box {
        width: 200px;
        height: 100px;
        margin: 15px;
        padding: 15px;
        display: inline-block;
        vertical-align: top;
        background-color: #f0f0f0;
        border: 2px solid #333;
        text-align: center;
        line-height: 70px;
      }
      
      /* 四个角相同 */
      .radius-1 {
        border-radius: 10px;
      }
      

登录后可以查看完整源码、在线编辑并实时预览运行效果。