2D转换模块-相片墙

    xiaoxiao2022-07-02  113

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>标题</title> <style> * { margin: 0; padding: 0; } ul { width: 100%; height: 500px; background-color: yellow; text-align: center; border: 1px solid #000; } ul li { list-style: none; width: 150px; height: 200px; display: inline-block; margin-top: 100px; border: 4px solid #fff; position: relative; box-shadow: 0 0 10px; } ul li:nth-child(1) { transform: rotate(30deg); } ul li:nth-child(2) { transform: rotate(-10deg); } ul li:nth-child(3) { transform: rotate(10deg); } ul li:nth-child(4) { transform: rotate(45deg); } ul li:hover { transform: scale(1.5); transition: 1.5s; z-index: 10; } ul li img { width: 150px; height: 200px; } </style> </head> <body> <ul> <li><img src="11.jpg" alt=""></li> <li><img src="22.jpg" alt=""></li> <li><img src="33.jpeg" alt=""></li> <li><img src="44.jpg" alt=""></li> </ul> </body> </html>

     

     

    最新回复(0)