div实现阴影边框效果(适应各主流浏览器)
网站建设 2021-07-03 08:43www.dzhlxh.cn网站建设
复制代码
代码如下:<!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>狼蚁SEO提供</p>
</div>
</body>
</html>