導航:首頁 > 源碼編譯 > html源碼白底圖

html源碼白底圖

發布時間:2025-04-10 02:07:35

Ⅰ 如何在html網頁里插入<百度個性化地圖>不是普通白底地圖。請說明詳細操作步驟。

<!DOCTYPEhtml>
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<metaname="viewport"content="initial-scale=1.0,user-scalable=no"/>
<styletype="text/css">
body,html,#allmap{width:100%;height:100%;overflow:hidden;margin:0;font-family:"微軟雅黑";}
</style>
<scripttype="text/javascript"src="http://api.map..com/api?v=2.0&ak=您的密鑰"></script>
<title>個性化地圖</title>
</head>
<body>
<divid="allmap"></div>
</body>
</html>

<scripttype="text/javascript">
varmap=newBMap.Map('allmap');
map.centerAndZoom(newBMap.Point(116.404269,39.916042),12);

varmapStyle={
features:["road","building","water","land"],//隱藏地圖上的poi
style:"dark"//設置地圖風格為高端黑,目前支持normal(默認樣式),dark(深色樣式),light(淺色樣式)
}
map.setMapStyle(mapStyle);

functioncheckhHtml5()
{
if(typeof(Worker)==="undefined")
{
if(navigator.userAgent.indexOf("MSIE9.0")<=0)
{
alert("定製個性地圖示例:IE9以下不兼容,推薦使用網路瀏覽器、chrome、firefox、safari、IE10");
}

}
}
checkhHtml5();
</script>)

閱讀全文

與html源碼白底圖相關的資料

熱點內容
程序員放棄後會怎樣 瀏覽:159
河北模具編程 瀏覽:177
adb查找命令 瀏覽:308
安卓手機視頻文件夾怎麼打開 瀏覽:302
平板加密手機後怎麼關閉 瀏覽:556
流媒體伺服器應該注意什麼 瀏覽:526
d8命令編譯 瀏覽:942
壓縮包解壓需要多少空間 瀏覽:138
如何查找app屬性 瀏覽:380
android人臉識別技術 瀏覽:304
pc104編程 瀏覽:328
二維碼反編譯破解推廣 瀏覽:673
修改伺服器的mac地址 瀏覽:520
好玩的編程軟體 瀏覽:891
編程語言創始人有錢嗎 瀏覽:796
短視頻app怎麼獲客 瀏覽:8
查看雲伺服器的應用 瀏覽:427
javadump工具 瀏覽:558
程序員16g 瀏覽:421
程序員沒有辦法成為top怎麼辦 瀏覽:196