css实现锥形阴影效果

代码语言:html

所属分类:布局界面

代码描述:css实现锥形阴影效果

代码标签: 阴影 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
html {margin:0;padding:0;}

body {
    margin:0;
    padding:0;
    color: #222;
    background: #eee;
}

h1 {
    padding: 30px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

h2 {
    padding: 20px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

p {margin: 1em 0;}

#header, #content, #footer {position:relative;min-width:480px;}

.wrapper {
    position: relative;
    width: 460px;
    margin: 0 auto;
}

/* Header Section */
#header {
    z-index: 1000;
    background: #ccc;
    border-bottom: 8px solid #A59B9B;
    -webkit-box-shadow: 0 0 12px #000;
    box-shadow:         0 0 12px #000;
}

#header .wrapper {    
    height: 80px;
}

/* Content Section */
#content {clear: both;}

#content:before {
    content: "\0020";
    display: block;
    position: absolute;
    z-index: 800;
    top: 0;
    left: 50%;
    margin-left: -230px;
    width: 460px;
    height: 120px;
    -webkit-box-shadow: 0 0 12px #333;
    box-shadow:         0 0 12px #333;

    /* Rounded corners, browser-specific for compatibility. */
    -webkit-border-radius: 9px;
    -webkit-border-bottom-right-radius: 10px 150px;
    -webkit-border-bottom-left-radius:  10px 150px;
    -moz-border-radius: 9px;
    -moz-border-radius-bottomright: 10px 150px;
    -moz-border-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0