【发布时间】:2019-11-22 23:53:29
【问题描述】:
我在这里想要实现的目标:
- 我想要一个带有“打印”的橙色正方形作为未触及状态。
- 翻滚时,我希望出现女孩图像。
- 点击后我希望女孩图片保持访问状态。
我得到的只是一个翻转状态,没有访问状态。
http://codepen.io/Chris-Brennan/pen/eNaxQY?editors=110
.dwight:hover {
content: url('http://s18.postimg.org/eadl79djp/dwight.png');
}
.dwight:visited {
content: url('http://s18.postimg.org/eadl79djp/dwight.png');
}
<a class="dwight" href="#"><img src="http://s16.postimg.org/ph8f6jedt/print.png"/></a>
【问题讨论】:
标签: html css image pseudo-class rollover