鼠标放到图片上后:
demo地址:demo
div:
1 <div class="wai"> 2 <a href="#"> 3 <div class="spinner"></div> 4 <div class="img"> 5 <img src="/static/imghwm/default1.png" data-src="images/example.png" class="lazy" alt="img"> 6 </div> 7 <div class="info"> 8 <div class="info-back"> 9 <h3 id="Heading-here">Heading here</h3>10 <p>Description goes here</p>11 </div>12 </div>13 </a>14 </div>
css:
1 .wai{ 2 height: 220px; 3 position: relative; 4 width: 220px; 5 } 6 .wai * { 7 box-sizing: border-box; 8 } 9 10 /*圆形边框*/ 11 .wai .spinner{ 12 border-color: #e53aec #74b9d2 #74b9d2 #e234ec; /*上右下左的边框颜色*/ 13 border-image: none; 14 border-radius: 50%; 15 border-style: solid; 16 border-width: 10px; 17 height: 230px; 18 transition: all 0.8s ease-in-out 0s; 19 width: 230px; 20 } 21 22 /*图片*/ 23 .wai .img::before { 24 display: none; 25 border-radius: 50%; 26 box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.6) inset, 0 1px 2px rgba(0, 0, 0, 0.3); 27 content: ""; 28 height: 100%; 29 position: absolute; 30 transition: all 0.35s ease-in-out 0s; 31 width: 100%; 32 } 33 .wai .img { 34 border-radius: 50%; 35 bottom: 0; 36 height: auto; 37 left: 10px; 38 position: absolute; 39 right: 0; 40 top: 10px; 41 width: auto; 42 vertical-align: middle; 43 } 44 .wai .img img { 45 border-radius: 50%; 46 height: 100%; 47 width: 100%; 48 49 } 50 51 52 /*下方文字的设置*/ 53 54 .wai .info { 55 background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0; 56 bottom: 0; 57 left: 10px; 58 opacity: 0; 59 right: 0; 60 top: 10px; 61 transition: all 0.8s ease-in-out 0s; 62 } 63 .info { 64 backface-visibility: hidden; 65 border-radius: 50%; 66 bottom: 0; 67 left: 0px; 68 position: absolute; 69 right: 0; 70 text-align: center; 71 top: 0px; 72 } 73 .wai .info p { 74 color: #bbb; 75 padding: 10px 5px; 76 font-style: italic; 77 margin: 0 30px; 78 font-size: 12px; 79 border-top: 1px solid rgba(255, 255, 255, 0.5); 80 } 81 .wai .info h3 { 82 color: #fff; 83 text-transform: uppercase; 84 position: relative; 85 letter-spacing: 2px; 86 font-size: 22px; 87 margin: 0 30px; 88 padding: 55px 0 0 0; 89 height: 110px; 90 text-shadow: 0 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.3); 91 } 92 93 /*hover后的动作---*/ 94 .wai a:hover { 95 text-decoration: none; 96 } 97 .wai a:hover .spinner { 98 -webkit-transform: rotate(180deg); 99 -moz-transform: rotate(180deg);100 -ms-transform: rotate(180deg);101 -o-transform: rotate(180deg);102 transform: rotate(180deg);103 }104 105 .wai a:hover .info {106 opacity: 1;107 }

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

HTML的作用是通过标签和属性定义网页的结构和内容。1.HTML通过到、等标签组织内容,使其易于阅读和理解。2.使用语义化标签如、等增强可访问性和SEO。3.优化HTML代码可以提高网页加载速度和用户体验。

htmlisaspecifictypefodyfocusedonstructuringwebcontent,而“代码” badlyLyCludEslanguagesLikeLikejavascriptandPytyPythonForFunctionality.1)htmldefineswebpagertuctureduseTags.2)“代码”代码“ code” code code code codeSpassSesseseseseseseseAwiderRangeLangeLangeforLageforLogageforLogicIctInterract

HTML、CSS和JavaScript是Web开发的三大支柱。1.HTML定义网页结构,使用标签如、等。2.CSS控制网页样式,使用选择器和属性如color、font-size等。3.JavaScript实现动态效果和交互,通过事件监听和DOM操作。

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

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

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

如何设计菜单中的虚线分割效果?在设计菜单时,菜名和价格的左右对齐通常不难实现,但中间的虚线或点如何...


热AI工具

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

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

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

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

热门文章

热工具

Dreamweaver CS6
视觉化网页开发工具

SecLists
SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

PhpStorm Mac 版本
最新(2018.2.1 )专业的PHP集成开发工具

ZendStudio 13.5.1 Mac
功能强大的PHP集成开发环境

SublimeText3 Linux新版
SublimeText3 Linux最新版