【发布时间】:2018-09-09 21:44:06
【问题描述】:
我正在尝试找出放置在 Google 地图表面上的 SVG 标记中使用的字体。具体来说,9 在this codepen 中的蓝色标记上。
标签设置有以下属性:
label: {
text: "9",
color: "white",
fontWeight:"bold"
},
但是,当我使用 Chrome 或 Firefox 将标记归零时,无论 fontWeight 属性设置为什么,我都会得到相同的字体粗细。
有办法吗?
【问题讨论】:
-
<div style="color: white;font-size: 14px;font-weight: bold;font-family: Roboto, Arial, sans-serif;">9</div> -
@j08691 我如何在 devTools 中看到这个?它将元素显示为
img标签,而不是 div。而img标签显示font-weight为400,而bold应为700。 -
我不得不删除一堆 div,这些 div 位于您想通过检查器访问的顶部。
标签: html css svg google-chrome-devtools firefox-developer-tools