google-maps - Canvas 上的 Google map 边框

标签 google-maps css border

我检查了新的谷歌地图外观,它在 Canvas 上有一种带阴影的边框。怎么可能做到这一点?看起来不错。

提前致谢

最佳答案

它只是一个设置为内部的框阴影(大多数框阴影是外部的,也称为投影)。 CSS 非常简单:

#inner-shadow {
-moz-box-shadow: inset 0 0 5px #888;
-webkit-box-shadow: inset 0 0 5px#888;
box-shadow: inner 0 0 5px #888;
}

和 html:

<div id="inner-shadow">
<!-- Google Map here -->
</div>

关于google-maps - Canvas 上的 Google map 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10620446/

相关文章:

javascript - 关闭所有信息窗口谷歌地图 API V3?

android - 无法使用 picasso 库加载解析图像。 "imgUrl is cannot be resolved to a symbhol"

google-maps - Google Maps v3 getBounds超出了 map 上可见的范围

javascript - Google map JavaScript Places API - URL 未定义

javascript - 动态更改元素的类名并立即更改页面的外观

javascript - SVG/CSS 问题,嵌入或引用文件

javascript - 文本鼠标悬停时的图像边框

.net - 更改wpf中的按钮边框厚度?

CSS : img border and text decoration

css - 980px 换行 1px left & border + 2 footer same size right below it not aligning properly