0
A
回答
0
這對我有效。請注意我用我自己的服務器上的WordPress,上wordpress.com不
<canvas id="c" style="position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: -1;"></canvas>
<script>
var gl = document.getElementById("c").getContext("webgl");
function render() {
gl.clearColor(Math.random(), 0, 0, 1);
gl.clear(gl.COLOR_BUFFER_BIT);
requestAnimationFrame(render);
}
requestAnimationFrame(render);
您可能需要確保身體和HTML有自己的CSS設置高度爲100%
+0
對!不在wordpress.com的帖子。 –
相關問題
- 1. 如何用流星創建完整的窗口畫布?
- 2. 如何在GWT中製作完整的窗口畫布?
- 3. 從RecyclerView完整內容創建PDF?
- 4. Web:在窗口內創建窗口
- 5. 如何在分機4中創建完整的模式窗口?
- 6. 動畫窗口大小調整的內容重新
- 7. window.open javascript窗口沒有顯示完整的內容
- 8. 調整大小的畫布內容
- 9. 將畫布調整爲完整的瀏覽器窗口寬度和高度
- 10. 創建在WordPress內容的子標籤
- 11. 如何創建包含畫布的彈出窗口?
- 12. 如何在xaml中創建可重用的窗口內容?
- 13. 創建一個虛擬窗口,用於在內存中繪畫
- 14. 帶動畫畫布的onmouseover完整性
- 15. 如何在Firefox中擴展內容文件中創建畫布?
- 16. 創建一個只能在父窗口內拖動的窗口
- 17. 在HTML5畫布內創建表格
- 18. 在新頁面創建ASP.NET內容(彈出窗口)
- 19. 如何在當前窗口中創建新內容或圖層?
- 20. 畫布出現在內容
- 21. 是否可以在畫布標籤內創建下拉菜單
- 22. 從父窗口打印動態創建的iframe的內容
- 23. tkinter畫布窗口大小
- 24. HTML5畫布適合窗口
- 25. jQuery的WordPress動畫內容動畫
- 26. 創建畫布
- 27. 在一個彈出窗口內創建下拉菜單(Googlescript)
- 28. jQuery創建一個僅包含XML內容的新窗口
- 29. 窗口管理器。 X窗口的內部內容在單獨的窗口中?
- 30. 在主窗口中動態調整畫布大小?
你可以給更多細節並問一個確切的問題?鑑於你寫的我明白你有全屏api的麻煩或定位你的按鈕在網頁上? – Atrahasis