html5图片,HTML5图片比较

css

div#comparison {

width: 60vw;

height: 60vw;

max-width: 600px;

max-height: 600px;

overflow: hidden; }

div#comparison figure {

background-image: url(http://www.jq22.com/tp/5c70a2fd-e51a-4629-ba6c-50153725feba.jpg);

background-size: cover;

position: relative;

font-size: 0;

width: 100%;

height: 100%;

margin: 0;

}

div#comparison figure > img {

position: relative;

width: 100%;

}

div#comparison figure div {

background-image: url(http://www.jq22.com/tp/fcb3a0c4-ab05-4023-bf7d-e767d571d876.jpg);

background-size: cover;

position: absolute;

width: 50%;

box-shadow: 0 5px 10px -2px rgba(0,0,0,0.3);

overflow: hidden;

bottom: 0;

height: 100%;

}

input[type=range]{

-webkit-appearance:none;

-moz-appearance:none;

position: relative;

top: -2rem; left: -2%;

background-color: rgba(255,255,255,0.1);

width: 102%;

}

input[type=range]:focus {

outline: none;

}

input[type=range]:active {

outline: none;

}

input[type=range]::-moz-range-track {

-moz-appearance:none;

height:15px;

width: 98%;

background-color: rgba(255,255,255,0.1);

position: relative;

outline: none;

}

input[type=range]::active {

border: none;

outline: none;

}

input[type=range]::-webkit-slider-thumb {

-webkit-appearance:none;

width: 20px; height: 15px;

background: #fff;

border-radius: 0;

}

input[type=range]::-moz-range-thumb {

-moz-appearance: none;

width: 20px;

height: 15px;

background: #fff;

border-radius: 0;

}

input[type=range]:focus::-webkit-slider-thumb {

background: rgba(255,255,255,0.5);

}

input[type=range]:focus::-moz-range-thumb {

background: rgba(255,255,255,0.5);

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值