屏幕上的头发丝
记不清在哪个博客上看到的了,觉得挺好玩,就扒下来耍耍。一段简单的js代码配一张图就搞定。记录于此以备所需。
<script>var randomNum = Math.floor(Math.random() * 300) + 1;document.write("<img src=\'/assets/images/fasi.png\' style=\'position: fixed; bottom: 50%; right: 30%; z-index: 999; pointer-events: none; width: 40%; max-width: 190px; transform: rotate("+randomNum+"deg);\'>");</script> 标签
版权属于:
etom
本文链接:
https://etom.top/archives/so14.html
转载申明:
转载请保留本文链接,著作权归作者所有。












评论
等风等雨等你来