新聞中心
本文小編為大家詳細(xì)介紹“HTML5的body屬性怎么設(shè)置”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“HTML5的body屬性怎么設(shè)置”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來(lái)學(xué)習(xí)新知識(shí)吧。
成都創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價(jià)比鐵西網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫(kù),直接使用。一站式鐵西網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋鐵西地區(qū)。費(fèi)用合理售后完善,10余年實(shí)體公司更值得信賴。
body元素就是就是html文檔的主內(nèi)容標(biāo)簽。
可設(shè)置屬性
onafterprint 在打印文檔之后運(yùn)行腳本
onbeforeprint 在文檔打印之前運(yùn)行腳本
onbeforeonload 在文檔加載之前運(yùn)行腳本
onblur 當(dāng)窗口失去焦點(diǎn)時(shí)運(yùn)行腳本
onerror 當(dāng)錯(cuò)誤發(fā)生時(shí)運(yùn)行腳本
onfocus 當(dāng)窗口獲得焦點(diǎn)時(shí)運(yùn)行腳本
onhaschange 當(dāng)文檔改變時(shí)運(yùn)行腳本
onload 當(dāng)文檔加載時(shí)運(yùn)行腳本
onmessage 當(dāng)觸發(fā)消息時(shí)運(yùn)行腳本
onoffline 當(dāng)文檔離線時(shí)運(yùn)行腳本
ononline 當(dāng)文檔上線時(shí)運(yùn)行腳本
onpagehide 當(dāng)窗口隱藏時(shí)運(yùn)行腳本
onpageshow 當(dāng)窗口可見(jiàn)時(shí)運(yùn)行腳本
onpopstate 當(dāng)窗口歷史記錄改變時(shí)運(yùn)行腳本
onredo 當(dāng)文檔執(zhí)行再執(zhí)行操作(redo)時(shí)運(yùn)行腳本
onresize 當(dāng)調(diào)整窗口大小時(shí)運(yùn)行腳本
onstorage 當(dāng)文檔加載加載時(shí)運(yùn)行腳本
onundo 當(dāng)文檔執(zhí)行撤銷操作時(shí)運(yùn)行腳本
onunload 當(dāng)用戶離開文檔時(shí)運(yùn)行腳本
DOM 接口
代碼: 全選 運(yùn)行
interface HTMLBodyElement : HTMLElement {
attribute Function onafterprint;
attribute Function onbeforeprint;
attribute Function onbeforeunload;
attribute Function onblur;
attribute Function onerror;
attribute Function onfocus;
attribute Function onhashchange;
attribute Function onload;
attribute Function onmessage;
attribute Function onoffline;
attribute Function ononline;
attribute Function onpopstate;
attribute Function onpagehide;
attribute Function onpageshow;
attribute Function onredo;
attribute Function onresize;
attribute Function onscroll;
attribute Function onstorage;
attribute Function onundo;
attribute Function onunload;
};
讀到這里,這篇“HTML5的body屬性怎么設(shè)置”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識(shí)點(diǎn)還需要大家自己動(dòng)手實(shí)踐使用過(guò)才能領(lǐng)會(huì),如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
本文名稱:HTML5的body屬性怎么設(shè)置
URL分享:http://fisionsoft.com.cn/article/gphipi.html