更新时间:2019-08-07 11:14:41
在页面中引入下面的文件。
1 2 3 | < link rel = "stylesheet" type = "text/css" href = "css/base.css" /> < script src = "js/imagesloaded.pkgd.min.js" ></ script > < script src = "js/demo.js" ></ script > |
html
1 2 3 4 5 6 7 8 9 10 11 12 | < div class = "content" > < div class = "item" > < div class = "item__img-wrap" > < div class = "item__img item__img--t1" ></ div > </ div > < div class = "item__caption" > < h2 class = "item__caption-title" >Central view</ h2 > < p class = "item__caption-copy" >Great turbulent clouds emerged into consciousness citizens.</ p > </ div > </ div > ..... </ div > |
图片修改在base.css中第153行至201行
js
1 2 3 4 5 6 | document.documentElement.className = "js" ; var supportsCssVars = function () { var e, t = document.createElement( "style" ); return t.innerHTML = "root: { --tmp-var: bold; }" , document.head.appendChild(t), e = !!(window.CSS && window.CSS.supports && window.CSS.supports( "font-weight" , "var(--tmp-var)" )), t.parentNode.removeChild(t), e }; supportsCssVars() || alert( "Please view this demo in a modern browser that supports CSS Variables." ); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com