百度地图怎么可以去掉上面的文字
2016-12-24 · 知道合伙人互联网行家
关注
展开全部
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>javascript移除百度地图LOGO和版权信息</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var mp = new BMap.Map('map');
mp.centerAndZoom(new BMap.Point(121.491, 31.233), 11);
}
window.onload = initialize;
</script>
</head>
<body><input type="button" onclick="$('.BMap_cpyCtrl').remove();" value="移除百度地图LOGO和版权说明"/>
<div id="map" style="width:500px;height:320px"></div>
</body>
</html>
试试,可以去掉,不过要点击按钮才能去,一打开就去掉的方法,
<html>
<head>
<meta charset="utf-8"/>
<title>javascript移除百度地图LOGO和版权信息</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var mp = new BMap.Map('map');
mp.centerAndZoom(new BMap.Point(121.491, 31.233), 11);
}
window.onload = initialize;
</script>
</head>
<body><input type="button" onclick="$('.BMap_cpyCtrl').remove();" value="移除百度地图LOGO和版权说明"/>
<div id="map" style="width:500px;height:320px"></div>
</body>
</html>
试试,可以去掉,不过要点击按钮才能去,一打开就去掉的方法,
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>javascript移除百度地图LOGO和版权信息</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var mp = new BMap.Map('map');
mp.centerAndZoom(new BMap.Point(121.491, 31.233), 11);
}
window.onload = initialize;
</script>
</head>
<body><input type="button" onclick="$('.BMap_cpyCtrl').remove();" value="移除百度地图LOGO和版权说明"/>
<div id="map" style="width:500px;height:320px"></div>
</body>
</html>
<html>
<head>
<meta charset="utf-8"/>
<title>javascript移除百度地图LOGO和版权信息</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var mp = new BMap.Map('map');
mp.centerAndZoom(new BMap.Point(121.491, 31.233), 11);
}
window.onload = initialize;
</script>
</head>
<body><input type="button" onclick="$('.BMap_cpyCtrl').remove();" value="移除百度地图LOGO和版权说明"/>
<div id="map" style="width:500px;height:320px"></div>
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询