Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537
輪事件:滾輪
滾動(dòng)(卷動(dòng))事件:滾輪、拖拽滾動(dòng)條、鍵盤方向鍵
<script type="text/javascript">
//滾輪事件:滾輪
//卷動(dòng)事件:滾輪、拖拽滾動(dòng)條、鍵盤?鍵
//IE和Chrome
gunlun.onmousewheel = function(){
this.innerHTML += "IE和Chrome<br/>";
}
//Firefox
gunlun.addEventListener("DOMMouseScroll", function(){
this.innerHTML += "Firefox<br/>";
})
</script>
判斷滾輪方向
<script type="text/javascript">
//滾輪事件:滾輪
//卷動(dòng)事件:滾輪、拖拽滾動(dòng)條、鍵盤?鍵
//IE和Chrome
gunlun.onmousewheel = function(e){
var ev = e || window.event;
console.log(ev.wheelDelta);//判斷滾輪方向的
//上120
//下-120
this.innerHTML += "IE和Chrome<br/>";
}
//Firefox
gunlun.addEventListener("DOMMouseScroll",function(e){
var ev = e || window.event;
console.log(ev.detail);//滾輪方向
//上-3
//下3
this.innerHTML += "Firefox<br/>";
})
</script>
兼容性封裝
、新建項(xiàng)目
1、新建===web項(xiàng)目===輸入項(xiàng)目名稱====完成
二、新建html文件
在新建項(xiàng)目中新建html模板
輸入文件名稱:
三、認(rèn)識(shí)基本格式
聯(lián)想出基本格式:
四、編輯html文件
運(yùn)行html,選擇瀏覽器
五、html常用的快捷鍵
(1)ctrl+n+w web項(xiàng)目創(chuàng)建
(2)ctrl+n+h html文檔創(chuàng)建
(3)ctrl+s 保存html頁面(頁面上如果未保存會(huì)顯示*號(hào))
(4)ctrl+r html運(yùn)行
(5)ctrl+z 撤回
(6)!+tab鍵 聯(lián)想基本格式
(7)ctrl+/ 注釋和取消注釋
(8)ctrl+鼠標(biāo)滾輪, 字體方大和縮小
六、認(rèn)識(shí)標(biāo)簽
(1)H標(biāo)簽(標(biāo)題標(biāo)簽)
(2)p標(biāo)簽 (段落標(biāo)簽)
(3)img 標(biāo)簽(圖片標(biāo)簽)
兩種:第一種widows上傳圖片,第二種:網(wǎng)上圖片鏈接
第一種
img中顯示圖片
img中引入圖片
第二種:網(wǎng)上圖片的鏈接:
(4) 標(biāo)簽(空格)
(5)em 標(biāo)簽表示斜體
(6)i 標(biāo)簽表示斜體
(7)br 表示換行
(8)b 標(biāo)簽表示加粗
(9) strong 標(biāo)簽表示加粗
(10)s 標(biāo)簽(刪除線)
(11)u 標(biāo)簽 (下劃線)
(12)font 顏色
(13)sub下標(biāo)
(14)sup上標(biāo)
點(diǎn)贊 + 關(guān)注 + 收藏 = 學(xué)會(huì)了
*請(qǐng)認(rèn)真填寫需求信息,我們會(huì)在24小時(shí)內(nèi)與您取得聯(lián)系。