html - 在悬停弹性盒上显示另一个图像
问题描述
所以当我将鼠标悬停在其中一个上时,我试图让我的图像发生变化。我正在尝试为这三张图片执行此操作,但我无法执行此操作。我知道我需要使用 :hover psuedo,但我不确定应该如何进行。
#three {
background-color: #035177;
padding: .5vw;
display: -ms-flexbox;
-ms-flex-wrap: wrap;
-ms-flex-direction: column;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
display: -webkit-box;
display: flex;
}
#three div {
-webkit-box-flex: auto;
-ms-flex: auto;
flex: auto;
width: 200px;
margin: .5vw;
}
#three div img {
width: 100%;
height: auto;
}
<div id="three">
<div id="picutureOne">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/jeremiah-wilson-1.jpg" alt>
</div>
<div id="pictureTwo">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/jeremiah-wilson-2.jpg" alt>
</div>
<div id="pictureThree">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/jeremiah-wilson-3.jpg" alt>
</div>
</div>
解决方案
推荐阅读
- rest - 不允许使用 Spring Boot REST 方法 - 405 错误请求方法“GET”不支持
- sql - ACCESS 2016 SQL - 仅获取值更改的行
- vb.net - 使用 Linq 对一行中的多行查询进行排序
- xcode10 - Swift:Quick/Nimble 运行异步测试显示错误:'InvalidNimbleAPIUsage',原因:'expect(...).toEventually(...) 只能在主线程上运行。
- php - 如何使用 php 在网页中的任何文本元素旁边添加翻译按钮?
- java - 检查获取链中的任何对象是否为空,而无需检查每个深度
- python - Matplotlib 无法生成准确的滑块图
- python - 如何在 GUI 应用程序的 PyQtGraph 中等待鼠标交互时返回一个值
- angular - Karma istanbul 覆盖率报告在 Angular 中的代码更改时自动刷新
- bash - 检索协同进程的输出和退出代码