css火狐 hover 图片会重新请求,在“unhovering”之后使CSS Hover状态保持不变

在这里,我采用我的CSS想法。div img {

position:absolute;

opacity:0;

transition:0s 180s;}div:hover img {

opacity:1;

transition:0s;}div {

line-height:1.2em;

font-size:1em;

color:black;

transition:0s 180s;}div:hover {

line-height:0;

font-size:0;

color:transparent;

transition:0;}

标记:

some text to hover to see an image wich is hidden as you read this

div:hover img:focus {/* includes tabindex in html tag for img */

opacity:0;

transition:3s;

-webkit-transform:rotate(-360deg) scale(0.23);

-webkit-transform:rotate(-360deg) scale(0.23);

-moz-transform:rotate(-360deg) scale(0.23);

-o-transform:rotate(-360deg) scale(0.23);

-ms-transform:rotate(-360deg) scale(0.23);

transform:rotate(-360deg) scale(0.23);}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值