我是靠谱客的博主 柔弱大船,这篇文章主要介绍mvc5 html5,使用mvc5在cshtml中编写div元素ID,现在分享给大家,希望可以做个参考。

你需要更换:

有:

编辑:

这是一个测试项目确切的代码我有:

指数。 cshtml:

#map_canvas{

margin-top: 50px;

height: 250px;

}

@section Scripts{

$(document).ready(function() {

Initialize();

function Initialize() {

google.maps.visualRefresh = true;

var Tunisie = new google.maps.LatLng(36.81881, 10.16596);

var mapOptions = {

zoom: 8,

center: Tunisie,

mapTypeId: google.maps.MapTypeId.G_NORMAL_MAP

};

var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);

var myLatlng = new google.maps.LatLng(36.81881, 10.16596);

var marker = new google.maps.Marker({

position: myLatlng,

map: map,

title: 'Tate Gallery'

});

marker.setIcon('http://maps.google.com/mapfiles/ms/icons/green-dot.png')

google.maps.event.addListener(marker, 'click', function() {

infowindow.open(map, marker);

});

}

});

}

最后

以上就是柔弱大船最近收集整理的关于mvc5 html5,使用mvc5在cshtml中编写div元素ID的全部内容,更多相关mvc5内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(133)

评论列表共有 0 条评论

立即
投稿
返回
顶部