手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >css3.0 图形构成实例练习一
css3.0 图形构成实例练习一
摘要:html部分内容css部分*{padding:0;margin:0;}.header{width:300px;margin:100pxaut...

html部分内容

<div>

<div></div>

<div>

<div></div>

</div>

<div></div>

</div>

css部分

*{ 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;}

【css3.0 图形构成实例练习一】相关文章:

css3的图形3d翻转效果应用示例

div+css垂直居中的五种实现方法

css3学习心得分享

css网页制作实用技巧9则

css3弹性盒模型(Flexbox)详细介绍

css3中圆角和阴影的实验

CSS基础教程: CSS的分组(Grouping)和嵌套(Nesting)

css让图片等比例缩小的代码

CSS条状图表形式的实现方法

div+css相对定位和绝对定位用法实例详解

精品推荐
分类导航