html背景图片拉伸至全屏

本来想在body的css中设置,但发现怎么弄也无法搞定,技术水平有限吧,最后通过下面方式来达到效果:

<img src = 'url' border = '0' width = '100%' height = '100%' style = 'position: absolute; left:0px; top:0px; z-index: -1'>

原文地址:https://www.cnblogs.com/linguoguo/p/3956094.html