div实现阴影边框效果(适应各主流浏览器)
(编辑:jimmy 日期: 2024/11/1 浏览:2)
复制代码代码如下:
<!DOCTYPE HTML>
<html>
<head>
<title>CSs阴影框,Div阴影</title>
<style type="text/css">
*{ margin:0; padding:0; border:0; }
body{ padding:4em; font-family:Tahoma, Geneva, sans-serif }
/*box*/
.box { width:60%;background-color:#666}
.box p {line-height:1.8; padding:2em; position:relative; top:-5px; left:-5px;zoom:1;background-color:#ccc}
</style>
</head>
<body>
<div class="box">
<p>提供</p>
</div>
</body>
</html>