|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
你可以轻松地控制页面的布局。
<html>
<head>
<title>CSS圆角效果</title>
<metahttp-equiv="content-type"content="text/html;charset=gb2312">
<styletype="text/css">
div.RoundedCorner{background:#9BD1FA}
b.rtop,b.rbottom{display:block;background:#FFF}
b.rtopb,b.rbottomb{display:block;height:1px;overflow:hidden;background:#9BD1FA}
b.r1{margin:05px}
b.r2{margin:03px}
b.r3{margin:02px}
b.rtopb.r4,b.rbottomb.r4{margin:01px;height:2px}
</style>
</head>
<body>
<divclass="RoundedCorner">
<bclass="rtop"><bclass="r1"></b><bclass="r2"></b><bclass="r3"></b><bclass="r4"></b></b>
<br>无图片完成圆角框<br><br>
<bclass="rbottom"><bclass="r4"></b><bclass="r3"></b><bclass="r2"></b><bclass="r1"></b></b>
</div>
</body>
</html>
---------------------------------------------------------------------------------------
制造圆角表格(Table)的完全代码
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01//EN"/>
<html>
<head>
<styletype="text/css">
body{background-color:#FFF;}
div#nifty1{margin:010px;background:#9BD1FA;}
div#nifty2{margin:010px;background:#9BD1FA;}
div#nifty3{margin:010px;background:#9BD1FA;}
div#nifty4{margin:03px;background:#9BD1FA;}
div#nifty5{margin:03px;background:#9BD1FA;}
b.rtop,b.rbottom{display:block;background:#FFF}
b.rtopb,b.rbottomb{display:block;height:1px;
overflow:hidden;background:#9BD1FA}
b.r1{margin:05px}
b.r2{margin:03px}
b.r3{margin:02px}
b.rtopb.r4,b.rbottomb.r4{margin:01px;height:2px}
</style>
</head>
<body>
<tablewidth="100%"cellpadding="0"cellspacing="0">
<tr>
<td>
<divid="nifty1">
<bclass="rtop">
<bclass="r1"></b>
<bclass="r2"></b>
<bclass="r3"></b>
<bclass="r4"></b>
</b>
<divstyle="height:20px;">
紧缩一下
</div>
<bclass="rbottom">
<bclass="r4"></b>
<bclass="r3"></b>
<bclass="r2"></b>
<bclass="r1"></b>
</b>
</div>
</td>
<td>
<divid="nifty2">
<bclass="rtop">
<bclass="r1"></b>
<bclass="r2"></b>
<bclass="r3"></b>
<bclass="r4"></b>
</b>
<divstyle="height:20px;">
紧缩一下
</div>
<bclass="rbottom">
<bclass="r4"></b>
<bclass="r3"></b>
<bclass="r2"></b>
<bclass="r1"></b>
</b>
</div>
</td>
<td>
<divid="nifty3">
<bclass="rtop">
<bclass="r1"></b>
<bclass="r2"></b>
<bclass="r3"></b>
<bclass="r4"></b>
</b>
<divstyle="height:20px;">
紧缩一下
</div>
<bclass="rbottom">
<bclass="r4"></b>
<bclass="r3"></b>
<bclass="r2"></b>
<bclass="r1"></b>
</b>
</div>
</td>
<td>
<divid="nifty4">
<bclass="rtop">
<bclass="r1"></b>
<bclass="r2"></b>
<bclass="r3"></b>
<bclass="r4"></b>
</b>
<divstyle="height:20px;">
紧缩一下
</div>
<bclass="rbottom">
<bclass="r4"></b>
<bclass="r3"></b>
<bclass="r2"></b>
<bclass="r1"></b>
</b>
</div>
</td>
<td>
<divid="nifty5">
<bclass="rtop">
<bclass="r1"></b>
<bclass="r2"></b>
<bclass="r3"></b>
<bclass="r4"></b>
</b>
<divstyle="height:20px;">
紧缩一下
</div>
<bclass="rbottom">
<bclass="r4"></b>
<bclass="r3"></b>
<bclass="r2"></b>
<bclass="r1"></b>
</b>
</div>
</td>
</tr>
</table>
</body>
</html>
一般来说还需要用Photoshop或FireWorks(以下简称PS或FW)等图片处理软件将需要制作的界面布局简单的构画出来。 |
|