Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 RaphelJS 构建一些地图并在 Firefox 的控制台中不断看到此错误:
意外值符合解析 preserveAspectRatio 属性。
根据MDN 文档,至少,meet对于preserveAspectRatio. 另外,这不是我设置的,所以一定是拉斐尔在做的。任何猜测是什么原因造成的?
meet
preserveAspectRatio
目前它并没有阻止事情运行,但我更愿意摆脱这个警告。
preserveAspectRatio 的语法是
Attribute preserveAspectRatio="[defer] <align> [<meetOrSlice>]"
<align>因此,在可选<meetOrSlice>值meetRaphaelJS 设置 preserveAspectRatio="meet"之前需要一个有效值,因此会发出 Firefox 警告。
<align>
<meetOrSlice>