欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

css3.0 圖形構(gòu)成實(shí)例練習(xí)一

  發(fā)布時(shí)間:2013-03-19 10:41:22   作者:佚名   我要評(píng)論
css3.0 的出現(xiàn)給我們帶來了很大的影響,本文主要介紹下圖形構(gòu)成,感興趣的朋友可以參考并學(xué)習(xí)下實(shí)例,希望對(duì)你學(xué)習(xí)css3有所幫助
html部分內(nèi)容

復(fù)制代碼
代碼如下:

<div class="header">
  <div class="eye_left"></div>
  <div class="eye_right">
    <div class="eye_in"></div>
  </div>
  <div class="head_bottom"></div>
</div>

css部分

復(fù)制代碼
代碼如下:

*{ padding:0; margin:0;}
.header{ width:300px; margin:100px auto; position:relative; }
.eye_left,.eye_right{
  width:30px;
  height:30px;
  background:#FFF;
  position:absolute;
  border:70px solid #0C0;
  border-radius:160px;
  -moz-border-radius:160px;
  -webkit-border-radius:160px;
  -o-border-radius:160px;}
.eye_left{
  left:10px;
  top:0px;}
.eye_right{
  right:0px;
  top:0px;}
.head_bottom{
  width:200px;
  border:#0C0 solid 60px;
  border-radius:160px;
  -moz-border-radius:160px;
  -webkit-border-radius:160px;
  -o-border-radius:160px;
  height:30px;
  left:0px;
  position:absolute;
  top:120px;
  z-index:-5;}
.eye_in{
  background:#0C0;
  height:30px;
  width:30px;
  position:absolute;
  right:-30px;
  top:-30px;
  border:#FFF 30px solid;
  border-radius:160px;
  -moz-border-radius:160px;
  -webkit-border-radius:160px;
  -o-border-radius:160px;}

相關(guān)文章

最新評(píng)論