前面js部分body部分#不好意思,不知道為什麼不能複製程式碼,只能發圖片了
闭关修行中......
改為
#tu { background-image: url("./images/xxxxxxxxxxxx.jpg"); } #tu 有没有宽高?
試試
將 tu.style.backgroundImage 改成 tu.style.background 試試。
tu.style.backgroundImage
tu.style.background
改為
試試
將
tu.style.backgroundImage
改成tu.style.background
試試。