【CSS3】-曲线阴影翘边阴影_html/css_WEB-ITnose
效果图
代码
index
<!DOCTYPE html><html><head><meta charset=utf-8 /><title>box-shadow</title><link rel="stylesheet" href="css/style.css"></head><body> <div class="wrap effect"> <h3 id="Shadow-Effect">Shadow Effect</h3> </div> <ul class="box"> <li><img src="/static/imghw/default1.png" data-src="images/photo1.jpg" class="lazy"/ alt="【CSS3】-曲线阴影翘边阴影_html/css_WEB-ITnose" ></li> <li><img src="/static/imghw/default1.png" data-src="images/photo2.jpg" class="lazy"/ alt="【CSS3】-曲线阴影翘边阴影_html/css_WEB-ITnose" ></li> <li><img src="/static/imghw/default1.png" data-src="images/photo3.jpg" class="lazy"/ alt="【CSS3】-曲线阴影翘边阴影_html/css_WEB-ITnose" ></li> </ul></body></html>
css
body{ font-family: Arial; font-size: 24px;}/*位置样式*/.wrap h3{ text-align: center; position: relative; top:100px;}.wrap{ width: 50%; height: 300px; background: #FFF; margin:20px auto;}/*阴影样式 box-shadow: h-shadow v-shadow blur spread color inset;*//*边框阴影*/.effect{ position: relative; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.2) inset;}/*下边的曲线阴影*/.effect:before,.effect:after{ content:""; position: absolute; z-index: -1; left: 6px; right:6px; bottom: 0; top:95%; background: red; border-radius: 100px / 10px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);}/*照片*/.box{ width: 980px; height: auto; margin:20px auto; padding: 0; clear: both; overflow: hidden;}.box li img { width: 290px; height: 210px; padding: 5px;}ul.box li{ background: #fff; list-style: none; width: 300px; height: 220px; margin:20px 10px; line-height: 220px; border: 2px solid #efefef; position: relative; float: left; padding: 0; text-align: center;}/*照片阴影*/ul.box li:before{ content:""; position: absolute; z-index: -1; width: 85%; height: 80%; left: 20px; bottom: 5px; background: red; transform: skew(14deg) rotate(3deg) ; box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);}ul.box li:after{ content:""; position: absolute; z-index: -1; width: 85%; height: 80%; right: 20px; bottom: 5px; background: red; transform: skew(-14deg) rotate(-3deg) ; box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);}

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

本文讨论了HTML&lt; Progress&gt;元素,其目的,样式和与&lt; meter&gt;元素。主要重点是使用&lt; progress&gt;为了完成任务和LT;仪表&gt;对于stati

HTML适合初学者学习,因为它简单易学且能快速看到成果。1)HTML的学习曲线平缓,易于上手。2)只需掌握基本标签即可开始创建网页。3)灵活性高,可与CSS和JavaScript结合使用。4)丰富的学习资源和现代工具支持学习过程。

本文讨论了html&lt; datalist&gt;元素,通过提供自动完整建议,改善用户体验并减少错误来增强表格。Character计数:159

本文讨论了HTML&lt; meter&gt;元素,用于在一个范围内显示标量或分数值及其在Web开发中的常见应用。它区分了&lt; meter&gt;从&lt; progress&gt;和前

本文讨论了视口元标签,这对于移动设备上的响应式Web设计至关重要。它解释了如何正确使用确保最佳的内容缩放和用户交互,而滥用可能会导致设计和可访问性问题。

本文讨论了&lt; iframe&gt;将外部内容嵌入网页,其常见用途,安全风险以及诸如对象标签和API等替代方案的目的。

HTML定义网页结构,CSS负责样式和布局,JavaScript赋予动态交互。三者在网页开发中各司其职,共同构建丰富多彩的网站。

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。
