赞
踩
完整代码(图片链接地址为绝对链接地址即网络上图片)
代码可直接运行
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>3D立方体相册</title> <style type="text/css"> #wrap span { display: block; width: 200px; height: 200px; /* background-color: khaki; */ position: absolute; top: 75px; left: 75px; } #wrap { width: 350px; height: 350px; margin: 200px auto; animation: rotate 20s infinite; /*3d空间展现*/ transform-style: preserve-3d; animation-timing-function: linear; background-image: url("C:\Users\1111\Desktop\立方相册\1414.jpg"); } /*设置图片大小*/ #wrap img { width: 100%; height: 100%; } #wrap span img { filter: opacity(100%); } #wrap div img { filter: opacity(90%);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。