万寿无疆哈哈

导航

 

<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://www.softwhy.com/" />
<title></title>
<style type="text/css">

.圆形{
width:100px;
height:100px;
background:green;
-moz-border-radius:50px;
-webkit-border-radius:50px;
border-radius:50px;
}

.椭圆形{
width:200px;
height:100px;
background:green;
-moz-border-radius:100px / 50px;
-webkit-border-radius:100px / 50px;
border-radius:100px / 50px;
}

.三角形{
width:0px;
height:0px;
border-left:100px solid green;
border-right:100px solid black;
border-bottom:100px solid red;
border-top:100px solid blue;
}

.平行四边形{
width:150px;
height:100px;
margin-left:20px;
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
background:green;
}

.鸡蛋形状{
display:block;
width:126px;
height:180px;
background-color:green;
-webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px;
border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
}


</style>

  //提示框

<style type="text/css">
.parent{
  width:300px;
  height:100px;
  margin:40px auto;
  background-color:green;
  position:relative;
}
.square{
  width:0px;
  height:0px;
  border-bottom:10px solid white;
  border-left:10px solid white;
  border-right:10px solid green;
  border-top:10px solid green;
  position:absolute;
  left:-20px;
  top:10px;
}
</style>


</head>
<body>
<div class="mytest"></div>

<div class="parent">
  <div class="square"></div>
</div>


</body>
</html>

posted on 2015-07-19 18:37  万寿无疆哈哈  阅读(152)  评论(0)    收藏  举报