1.CSS 阴影怎么写<style type="text/css"> .shadow{ width:120px; height:120px; border:1px solid #ccc; background:#fff; font-size:12px; padding:10px; -moz-box-shadow:3px 3px 4px #ccc; -webkit-box-shadow:3px 3px 4px #ccc; box-shadow:3px 3px 4px #ccc; *filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#cccccc"); } </style> shadow"> 阴影效果 <style type="text/css"> .shadow{ width:120px; height:120px; font-size:12px; padding:10px; *filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#cccccc"); } </style> shadow"> 阴影效果 <style type="text/css"> .shadow{ width:120px; height:120px; background:#fff; font-size:12px; padding:10px; *filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#cccccc"); } </style> shadow"> 阴影效果 <style type="text/css"> .shadow{ width:120px; height:120px; border:1px solid #ccc; font-size:12px; padding:10px; *filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#cccccc"); } </style> shadow"> 阴影效果 。
2.html5阴影效果怎么做边框阴影(box-shadow)的基本语法:
box-shadow:color h-shadow v-shadow blur spread inset;
color:阴影颜色 ------------ 可选
h-shadow :水平偏移量 ----必选
v-shadow:垂直偏移量-----必选
blur:模糊距离 -------------可选
spread:阴影尺寸---------- 可选
inset:内阴影 --------------可选
例子:
css部分:
.div1{
width:200px;
height:200px;
margin:20px auto;
line-height: 200px;
text-align: center;
background: cadetblue;
border:2px solid darkslategray;
box-shadow: darkgrey 10px 10px 30px 5px ;//边框阴影
}
html部分:
3.网页设计,HTML,如图中的阴影框,求代码<meta charset="UTF-8">Document<style>body{background-color: #0066CC;}h1{position: absolute;}.box{filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5;margin: 0 auto;width: 800px;height: 700px;background-color: #666;}.con{position: absolute;top: 400px;left:300px;color: #fff;}</style><body>你好 看见div是透明了么 不如先采纳权了吧