css3简单练习实现遨游浏览器logo的绘制
程序员文章站
2023-11-22 20:59:22
本文将对css3做一下简单的练习,主要是实现遨游浏览器logo的绘制,将会使用到css3的各种方法,就当巩固一下css3知识了,感兴趣的朋友可以了解下啊,或许对你们有所帮助... 13-01-30...
原来css3是这么回事,抓紧学啊
<!doctype html>
<html>
<head>
<title>css3</title>
<style type="text/css">
* {margin:0; padding:0}
.main {width:800px; margin:110px auto 0}
.main_wrapper {width:240px; height:240px; border-radius:120px; background:#b1e4ff; border:2px solid #789cb6; box-shadow:5px 5px 7px #999}
.main_wrap {width:230px; height:230px; border-radius:115px; position:relative; top:5px; left:5px; background:#3b99e3}
.white_1 {width:150px; height:100px; background:#fff; position:relative; left:42px; top:70px; border-radius:3px 20px 3px 3px}
.white_2 {width:35px; height:45px; background:#fff; position:relative; left:33px; top:30px; border:25px solid #3b99e3}
</style>
</head>
<body>
<div class="main">
<div class="main_wrapper">
<div class="main_wrap">
<div class="white_1">
<div class="white_2"></div>
</div>
</div>
</div>
</div>
</body>
</html>
复制代码
代码如下:<!doctype html>
<html>
<head>
<title>css3</title>
<style type="text/css">
* {margin:0; padding:0}
.main {width:800px; margin:110px auto 0}
.main_wrapper {width:240px; height:240px; border-radius:120px; background:#b1e4ff; border:2px solid #789cb6; box-shadow:5px 5px 7px #999}
.main_wrap {width:230px; height:230px; border-radius:115px; position:relative; top:5px; left:5px; background:#3b99e3}
.white_1 {width:150px; height:100px; background:#fff; position:relative; left:42px; top:70px; border-radius:3px 20px 3px 3px}
.white_2 {width:35px; height:45px; background:#fff; position:relative; left:33px; top:30px; border:25px solid #3b99e3}
</style>
</head>
<body>
<div class="main">
<div class="main_wrapper">
<div class="main_wrap">
<div class="white_1">
<div class="white_2"></div>
</div>
</div>
</div>
</div>
</body>
</html>
上一篇: seo是一种智慧和力量的博弈与分析
下一篇: CSS3实现3D翻书效果