在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'>
我该如何解决?
答案 0 :(得分:0)
根据HTML规范,您只能在coords
属性上使用逗号分隔它们的整数:https://html.spec.whatwg.org/multipage/infrastructure.html#valid-list-of-integers
因此,您必须舍入浮点值并删除它们之间的空格。