具有圆角效果:
.mainDiv{
border-radius:8px;border:1px solid #BBFFFF; margin:auto;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
}
下面是具有各种阴影效果的例子。
<!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=utf-8" />
<title>div¿ꔲ½ǼԒ�/title>
<style>
#main{
width:120px;
height:200px;
margin:auto;
border: 1px solid #696;padding: 60px 0;text-align: center; width: 200px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: #666 0px 0px 10px;
-moz-box-shadow: #666 0px 0px 10px;
box-shadow: #666 0px 0px 10px;background: #EEFF99;
}
</style>
</head>
<body>
<div id="main">
</div>
</body>
</html>
下面的样式是处理div中span居中问题的。
style="vertical-align:middle;"