“box -s hadow”是css3新增的属性。“box-shadow”属性的作用就是给元素框添加一个 或者 多个阴影,语法为“元素{box-shadow:水平阴影位置 垂直阴影位置 blur s PR ead color inset;}”。
本教程操作环境:windows10系统、CSS3@R_ 512 _315@HT ML 5版、Dell G3 电 脑。
box-shadow是css3新增的属性吗
box-shadow是css3新增的属性。
box-shadow 属性用于向框添加一个或多个阴影。该属性的语法如下:
box-shadow: h-shadow v-shadow blur spread color inset;
其中属性值表示如下:
示例如下:
<!DOCTY PE html> <html> <head> <style> div{ width:300px; h ei ght:100px; background-color: # ff9900; box-shadow: 10px 10px 5px #888888; } </style> </head> <body> <div></div> </body> </html>
输出结果:
(学习视频分享:css视频教程)
以上就是box-shadow是css3新增的属性吗的详细内容,更多请关注其它相关 文章 !
总结
以上是 为你收集整理的 box-shadow是css3新增的属性吗 全部内容,希望文章能够帮你解决 box-shadow是css3新增的属性吗 所遇到的问题。
如果觉得 网站内容还不错, 推荐好友。
查看更多关于box-shadow是css3新增的属性吗的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did200538