返回 边框总结及案例... 登陆

边框总结及案例

草原上的星辰 2018-11-28 16:05:24 400

  border:solid(实线)double(双)dashed(--) dotted(....) 

 border-radius:边角弧度  border:none 无边框

border-top left bottom ritght:上 左 下 右

box-shadow:x轴 y轴 宽度 颜色  inset(内部)

<!DOCTYPE html>
<html>
<head>
       <meta charset="utf-8">
       <title>边框</title>
       <link rel="stylesheet" type="text/css" href="images/logo.png">
       <style type="text/css">
              .box{width: 200px;height: 200px;border: 1px /*solid double dashed */dotted #ccc;border-radius: 100px;}
              .main{width: 200px;height: 200px;border-top: 1px solid red;background: #ccc;border-left:1px solid red; }
            .shadow{width: 100%;height: 100px;box-shadow:0px 6px 35px blue inset;font-size: 50px;line-height: 100px;text-align: center;}
            .button{border: none;}
       </style>
</head>
<body>
       <div>边框样式</div>
   <div></div>
   <div></div>
   <button>去边框</button>
</body>
</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤 • 省市区接口说明 • 用thinkphp,后台新增栏目 • 管理员添加编辑删除 • 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送