CSS CSS3 Skewed Shadows
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS CSS3 Skewed Shadows相关的知识,希望对你有一定的参考价值。
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Tuts</title>
<style>
body {
width: 500px;
margin: 50px auto;
}
.box {
position: relative;
-webkit-box-shadow: 1px 2px 4px rgba(0,0,0,.5);
-moz-box-shadow: 1px 2px 4px rgba(0,0,0,.5);
box-shadow: 1px 2px 4px rgba(0,0,0,.5);
/* Kokakify */
padding: 10px;
background: white;
}
.box img {
max-width: 100%;
border: 1px inset #8a4419;
}
.box:after {
content: '';
-webkit-box-shadow: 100px 0 10px 20px rgba(0,0,0,.2);
-moz-box-shadow: 100px 0 10px 20px rgba(0,0,0,.2);
box-shadow: 100px 0 10px 20px rgba(0,0,0,.2);
position: absolute;
width: 50%;
height: 40px;
bottom: 20px;
right: 90px;
z-index: -1;
-webkit-transform: skew(-40deg);
-moz-transform: skew(-40deg);
transform: skew(-40deg);
}
</style>
</head>
<body>
<div class="box">
<img src="tuts.jpg" alt="Tuts" />
</div>
</body>
</html>
以上是关于CSS CSS3 Skewed Shadows的主要内容,如果未能解决你的问题,请参考以下文章
css 实现css drop-shadows.css
CSS 不同的CSS Drop-Shadows
CSS 具有RGBA的跨浏览器CSS Box Shadows
statistics-skewed data
覆盖 twitter bootstrap Textbox Glow and Shadows
Handling skewed data---trading off precision and recall