濮阳杆衣贸易有限公司

主頁 > 知識庫 > HTML5實現(xiàn)錨點時請使用id取代name

HTML5實現(xiàn)錨點時請使用id取代name

熱門標(biāo)簽:四川移動電銷外呼客戶管理系統(tǒng) 地圖標(biāo)注柱狀圖 臨海地圖標(biāo)注app 智能芯電話機(jī)器人 咸陽穩(wěn)定外呼系統(tǒng)軟件 小朱地圖標(biāo)注 400開頭的電話好申請不 怎么做百度地圖標(biāo)注 百度地圖標(biāo)注為什么總是封號
HTML5已經(jīng)去掉name屬性,實現(xiàn)錨點時請使用id,實例效果:http://keleyi.com/keleyi/phtml/html5/9.htm

支持Chrome,火狐,IE8以上等瀏覽器。

以下是完整代碼:

復(fù)制代碼
代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML5錨點實例--柯樂義</title><base target="_blank" />
<style>
body{margin:0px;}
</style>
</head>
<body>
<div id="keleyihead"><a >柯樂義</a> <a >HTML5錨點</a> keleyi.com
<script type="text/javascript" src="http://keleyi.com/kineryi/js/gggg728x90a.js"></script></div>
<div style="height:30px;width:100%;text-align:center"><a href="#keleyifoot" target="_self">轉(zhuǎn)到底部</a></div>
<div style="background-color:#959822; width:100%;height:150px;">請滾動鼠標(biāo)使頁面向下</div>
<div style="background-color:Green; width:100%;height:150px;">www.keleyi.com</div>
<div style="background-color:Red; width:100%;height:150px;">歡迎</div>
<div style="background-color:Yellow; width:100%;height:150px;">hi</div>
<div style="background-color:Silver; width:100%;height:150px;">
<a target="_blank">綠色箭頭圖片返回頂部效果</a>
<a target="_blank">藍(lán)色方塊返回頂部</a>
<a target="_blank">純文本返回頂部</a>
<a target="_blank">漂亮的返回頂部、底部和留言</a></div>
<div style="background-color:Aqua; width:100%;height:150px;">keleyi.com</div>
<div style="background-color:Fuchsia; width:100%;height:150px;">keleyi</div>
<div style="background-color:Green; width:100%;height:150px;">keleyi.com</div>
<div style="background-color:Blue; width:100%;height:150px;">柯樂義</div>
<div style="background-color:Olive; width:100%;height:150px;">柯樂義 監(jiān)視下滾像素</div>
<div style="background-color:Green; width:100%;height:150px;">keleyi.com</div>
<div style="background-color:Purple; width:100%;height:150px;">jquery</div>
<div style="background-color:Green; width:100%;height:150px;"><a target="_blank">原文</a></div>
<div style="background-color:Lime; width:100%;height:150px;">keleyi.com</div>
<div style="background-color:Orange; width:100%;height:150px;">完整代碼</div>
<div style="height:200px;width:100%;">HTML5已經(jīng)去掉name屬性,實現(xiàn)錨點時請使用id</div>
<div id="keleyifoot" style="width:100%;height:276px;background: url(http://keleyi.com/images/footerimg.jpg); background-position:center top; background-repeat:no-repeat;text-align:center;"><a href="#keleyihead" target="_self">回到頂部</a></div>
</body>
</html>

直接轉(zhuǎn)到頁底示例:
http://keleyi.com/keleyi/phtml/html5/9.htm#keleyifoot

標(biāo)簽:平頂山 黃石 南平 陜西 山南 黃石 公主嶺

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《HTML5實現(xiàn)錨點時請使用id取代name》,本文關(guān)鍵詞  HTML5,實現(xiàn),錨點時,請使用,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《HTML5實現(xiàn)錨點時請使用id取代name》相關(guān)的同類信息!
  • 本頁收集關(guān)于HTML5實現(xiàn)錨點時請使用id取代name的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    长海县| 疏附县| 水城县| 通化市| 泰兴市| 石泉县| 武义县| 米泉市| 米林县| 罗江县| 内乡县| 黄石市| 襄城县| 固原市| 中牟县| 马尔康县| 仙居县| 城固县| 肃北| 灵川县| 昭通市| 鸡西市| 淮安市| 新津县| 博爱县| 潍坊市| 武宁县| 上犹县| 龙胜| 乌鲁木齐县| 乌恰县| 梁河县| 滕州市| 阿鲁科尔沁旗| 黎城县| 山西省| 达州市| 徐水县| 天津市| 兴化市| 眉山市|