提取自百度有啊的css圓角效果
更新時(shí)間:2009年03月30日 14:06:19 作者:
css圓角效果大家注意下圖片,其實(shí)就是利用圖片+css實(shí)現(xiàn)
復(fù)制代碼 代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>百度有啊css圓角方案</title>
<style>
.box1{background:url('http://www.fzitv.net/upload/20090330140617327.gif') repeat-x #1d6cb7;margin-top:1em;position:relative;zoom:1;width:778px;}
.box1 .tl,.box1 .tr,.box1 .bl,.box1 .br {width:5px;height:5px;position:absolute;background:url('http://www.fzitv.net/upload/20090330140618989.gif') no-repeat;overflow:hidden; }
.box1 .cc{height:40px; padding:5px;}
.box1 .tl {left:0;top:0;}
.box1 .tr {right:0;top:0;background-position:0 -5px;}
.box1 .bl {left:0;bottom:0;background-position:0 -10px;}
.box1 .br {right:0;bottom:0;background-position:0 -15px;}
.box2{border:1px solid #84cedd;margin-bottom:.8em;position:relative;zoom:1;width:778px;}
.box2 .tl,.box2 .tr,.box2 .bl,.box2 .br {width:6px;height:6px;position:absolute;background:url('http://www.fzitv.net/upload/20090330140618283.gif') no-repeat;overflow:hidden;}
.box2 .cc{height:40px; padding:5px;}
.box2 .tl {left:-1px;top:-1px;}
.box2 .tr {right:-1px;top:-1px;background-position:0 -6px;}
.box2 .bl {left:-1px;bottom:-1px;background-position:0 -12px;}
.box2 .br {right:-1px;bottom:-1px;background-position:0 -18px;}
.box3{position:relative;zoom:1;padding:1em 1.5em;margin:.5em 0 1em 0; background:#f1f6de}
.box3 .tl,.box3 .tr,.box3 .bl,.box3 .br {width:5px;height:5px;position:absolute;background:url('http://www.fzitv.net/upload/20090330140618807.gif') no-repeat;overflow:hidden;}
.box3 .cc{height:40px; padding:5px;}
.box3 .tl {left:0;top:0;}
.box3 .tr {right:0;top:0;background-position:0 -5px;}
.box3 .bl {left:0;bottom:0;_bottom:-1px;background-position:0 -10px;}
.box3 .br {right:0;bottom:0;_bottom:-1px;background-position:0 -15px;}
</style>
</head>
<body>
<div class="box1">
<span class="tl"></span><span class="tr"></span>
<div class="cc">
<p>圓角一</p>
</div>
<span class="bl"></span><span class="br"></span>
</div>
<p></p>
<div class="box2">
<span class="tl"></span><span class="tr"></span>
<div class="cc">
<p>圓角二</p>
</div>
<span class="bl"></span><span class="br"></span>
</div>
<p></p>
<div class="box3">
<span class="tl"></span><span class="tr"></span>
<div class="cc">
<p>圓角三</p>
</div>
<span class="bl"></span><span class="br"></span>
</div>
<br/><br/>更多代碼請(qǐng)?jiān)L問 <a href="http://www.fzitv.net/" target="_blank">腳本之家</a>
</body>
</html>
[Ctrl+A 全選 注:引入外部Js需再刷新一下頁面才能執(zhí)行]
您可能感興趣的文章:
- CSS圓角區(qū)塊容器生成器
- CSS實(shí)現(xiàn)光滑圓角效果
- 用js實(shí)現(xiàn)CSS圓角生成更新
- 用js實(shí)現(xiàn)的抽象CSS圓角效果!!
- 純CSS生成抗鋸齒圓角的代碼
- css Sprites小實(shí)例代碼
- CSS+Jquery實(shí)現(xiàn)頁面圓角框方法大全
- JS+CSS實(shí)現(xiàn)可拖拽的漂亮圓角特效彈出層完整實(shí)例
- jQuery+html5+css3實(shí)現(xiàn)圓角無刷新表單帶輸入驗(yàn)證功能代碼
- js+css實(shí)現(xiàn)的圓角邊框TAB選項(xiàng)卡滑動(dòng)門代碼分享(2款)
- JS+CSS實(shí)現(xiàn)自適應(yīng)選項(xiàng)卡寬度的圓角滑動(dòng)門效果
- JS+CSS實(shí)現(xiàn)的經(jīng)典圓角下拉菜單效果代碼
- CSS 使用Sprites技術(shù)實(shí)現(xiàn)圓角效果
相關(guān)文章
js實(shí)現(xiàn)的XP風(fēng)格的右鍵菜單
js實(shí)現(xiàn)的XP風(fēng)格的右鍵菜單...2007-03-03
javascript漸變顯示的雅虎中國選項(xiàng)卡效果代碼
javascript漸變顯示的雅虎中國選項(xiàng)卡效果代碼...2007-10-10
css 有彈動(dòng)效果的網(wǎng)頁導(dǎo)航
發(fā)了個(gè)韓國網(wǎng)站(www.firstkids.co.kr)給我,讓我用CSS寫一個(gè)類似這個(gè)網(wǎng)站的導(dǎo)航欄效果。思路是:背景圖像定位!2009-10-10
一個(gè)很簡(jiǎn)單的無限分類樹實(shí)現(xiàn)代碼
一個(gè)很簡(jiǎn)單的無限分類樹實(shí)現(xiàn)代碼,需要的朋友可以參考下。2010-11-11
JavaScript多級(jí)下拉菜單代碼(簡(jiǎn)單實(shí)用)
JavaScript下拉菜單實(shí)現(xiàn)代碼,js與css的良好結(jié)合。喜歡的朋友可以測(cè)試下。2010-06-06
超級(jí)susymenu實(shí)現(xiàn)top菜單
超級(jí)susymenu實(shí)現(xiàn)top菜單...2007-09-09
可折疊展開的簡(jiǎn)單目錄實(shí)現(xiàn)代碼
簡(jiǎn)單的目錄,展開菜單,鼠標(biāo)點(diǎn)擊即可展開,再次點(diǎn)擊即可合攏,類似樹形菜單的功能,在瀏覽網(wǎng)頁時(shí)會(huì)見很多,不多做介紹了,需要的朋友可以參考下2012-12-12

