css收集
[b]1:背景平铺[/b] 资源 bg.png: [img]http://dl.iteye.com/upload/attachment/0065/7815/3d923ced-2ebc-3ab5-8d59-969b9195c6d3.png[/img] [code="java"]body{background:url(../img/bg.png);background-repeat:repeat-x;}[/code] 效果: [img]http://dl.iteye.com/upload/attachment/0065/7819/6305b045-5c4e-37fe-9927-ad1e6421c76c.png[/img] [b]2:超链接[/b] [code="java"]a{cursor:pointer;color:#0086C6;text-decoration:none;} a:hover{text-decoration:underline;}[/code] [b]3:圆角矩形[/b] 资源:corner.png [img]http://dl.iteye.com/upload/attachment/0065/7870/30a401c0-af40-3ee9-9ed1-7e59bf8c7ea2.png[/img] [code="java"]
漂亮的圆角框,要求背景图片宽度要固定,四角要透明 。
[/code] [code="java"].top_1055{float:none;position:relative;width:1057px; height:10px;background:url(../img/corner.png); margin:0 auto;} .bottom_1055{float:none;position:relative;width:1057px; height:10px;background:url(../img/corner.png) no-repeat bottom left;margin:0px auto 10px auto;} #menu{float:none;position:relative;width:1055px;height:20px;background-color: #FFF;margin:0 auto;border: 1px solid #A7E9FF;border-top:none;border-bottom:none;} #menu div{margin-left:15px} [/code] 效果: [img]http://dl.iteye.com/upload/attachment/0065/7872/f2b591d6-ee79-3186-9719-667a10137f29.png[/img]