博客列表 >边框效果课后作业3-12

边框效果课后作业3-12

大卫同学的博客
大卫同学的博客原创
2019年03月14日 22:27:26419浏览

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>边框</title>

<!-- <link rel="icon" type="image/x-icon" href=""> -->

<style type="text/css">

  *{margin: 0;padding: 0;}

/* 边框属性:border:宽度 样式 颜色*/


div{


width: 200px;

height: 200px;

margin: 50px auto;

/*border: 1px dashed #ccc;*/

   /* 设置单边边框*/

   border: 1px dashed #ccc;

  /* border-left: 1px dotted #cc;

   border-right: 1px solid #cc;

   border-bottom: 1px double #cc;*/

}

/*边框阴影:box-shadow:x y 阴影宽度 阴影颜色*/


p{

width: 200px;

height: 200px;

margin: 50px;

box-shadow: 2px 2px 20px #ccc;

/*边框圆角 border-radius: */

/*border-radius: 10px;*/

/*圆形*/

/*border-radius: 50%;*/

/*控制单边框圆角*/

border-top-left-radius: 20px;

border-top-right-radius: 20px;

border-bottom-right-radius: 20px;

border-bottom-left-radius: 20px;



}



</style>

</head>

<body>

  <div></div>

  <p></p>

</body>

</html>


声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议