代码拉取完成,页面将自动刷新
?> 背景知识: resize, HTML < input[type=range] >
<script v-pre type="text/x-template" id="image-slider"> <style> main { width: 100%; display: flex; flex-direction: column; } main h5 { margin: 30px 30px 15px; } main div.image-slider { position: relative; } main div.image-slider img { display: block; user-select: none; max-width: initial; } main div.image-slider > img { width: 100%; } main div.image-slider > div > img { height: 100%; } main div.image-slider > div { width: 50%; position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; } section:nth-of-type(1) div.image-slider > div { max-width: 100%; resize: horizontal; } section:nth-of-type(1) div.image-slider > div::before { content: ""; width: 12px; height: 12px; position: absolute; right: 0px; bottom: 0px; padding: 5px; cursor: ew-resize; background: linear-gradient(-45deg, #E8E2D6 50%, transparent 0); background-clip: content-box; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); } section:nth-of-type(2) div.image-slider input { width: 100%; position: absolute; left: 0; bottom: 10px; margin: 0; cursor: ew-resize; } input[type=range]::-webkit-slider-thumb { appearance: none; margin-top: -3px; width: 10px; height: 10px; background-color: #E8E2D6; border: none; border-radius: 100%; mix-blend-mode: luminosity; transform: translateY(-1px); box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.18); } input[type=range]::-webkit-slider-runnable-track { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12); width: 100%; height: 6px; cursor: pointer; border-radius: 2px; border: none; background-color: #E8E2D6; } </style>创造良好的用户体验应当养成一种习惯~
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。