简体   繁体   English

W3C验证中的地图标签区域错误

[英]Map tag area error in W3C validation

On W3C validator my website is getting the following error: 在W3C验证器上,我的网站出现以下错误:

Error Line 240, Column 183: Bad value 13.483146067416, 97.752808988764, 586.14232209738, 317.22846441948 for attribute coords on element area: Expected a digit but saw . instead.
…ews/3561" title="Click For zoom" class="iframe squidhead" alt='Parshvabhoomi'> 
Syntax of rectangle:
...
Error Line 242, Column 183: Bad value 11.610486891386, 317.22846441948, 204.11985018727, 523.97003745318 for attribute coords on element area: Expected a digit but saw . instead.
…ews/3562" title="Click For zoom" class="iframe squidhead" alt='Parshvabhoomi'>

How can I fix that? 我该如何解决?

Per HTML spec, you can use only integers with just a comma separating them on the coords attribute: https://html.spec.whatwg.org/multipage/infrastructure.html#valid-list-of-integers 根据HTML规范,您只能在coords属性上使用带逗号分隔的整数: https : //html.spec.whatwg.org/multipage/infrastructure.html#valid-list-of-integers

So you have to round the floating-point values and remove the spaces between them. 因此,您必须舍入浮点值并删除它们之间的空格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM