表现不太好,和主题 css 冲突了,不想改了,所以贴出代码和网页 web | tg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| .qin { display: flex; height: 100%; flex: 1; justify-content: space-evenly; } .qin div span { font: 200 45px; height: 15%; text-align: center; display: flex; justify-content: center; align-items: center; } .box { flex: 1; overflow: hidden; transition: 0.5s; margin: 0 5px; border-radius: 10px; box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); border: 4px solid #fff; } .box img { width: 200%; height: 85%; object-fit: cover; flex-shrink: 0; transition: 0.5s ease-in-out; } .box:hover { flex-basis: 50%; } .box:hover img { width: 100%; height: 100%; }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <div class="qin"> <div class="box"> <img src="https://cdn.img2ipfs.com/ipfs/QmVfYmRkDZ7fGdSmeU5UZFR6rQ5GdSihrqrPLhLAF3mm4Y?filename=th%20(1).jpg" alt="" /> </div> <div class="box"> <img src="https://cdn.img2ipfs.com/ipfs/QmWAYybyJT7KK1e55HBoSDKvQnCY3ZtcLwEXsNPaw8Mawu?filename=th%20(2).jpg" alt="" /> </div> <div class="box"> <img src="https://cdn.img2ipfs.com/ipfs/Qmex3uRVbg6eRcnxPBkoBFP8VCSkbteZU4NMsskuQ3udNY?filename=th%20(6).jpg" alt="" /> </div> <div class="box"> <img src="https://cdn.img2ipfs.com/ipfs/QmTVBiPQZGiRk19uMoeDTuD4SVzWFonx1wjNvk869Wcmtw?filename=th%20(4).jpg" alt="" /> </div> <div class="box"> <img src="https://cdn.img2ipfs.com/ipfs/QmRTgvKcPYsiabGx9qEL5FAuhRUmdz8h6jSLEVFE5Y6KUj?filename=th%20(5).jpg" alt="" /> </div> </div>
|