linhai 发表于 2019-11-23 21:14
右键 另存为
t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",t.style.top="50%",t.style.marginTop=t.clientHeight/-2+"px")},l=function(t){if(void 0===t)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else{if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;t=t}for(var i=0;i<t.length;i++)if(t.nodeName){var n=t.nodeName.toLowerCase();"img"!==n||e?"video"===n&&(t.readyState>0?o(t):t.addEventListener("loadedmetadata",function(){o(this)})):t.complete?o(t):t.addEventListener("load",function(){o(this)})}return!0};document.addEventListener("DOMContentLoaded",function(){l()}),window.addEventListener("resize",function(){l()}),window.objectFitPolyfill=l}}();</script>
| 欢迎光临 全球主机交流论坛 (https://www.iloc.eu.org/) | Powered by Discuz! X3.4 |