我不明白w3c "Attribute iframe not allowed on element iframe at this point."此错误



我不明白这个错误:

"此时不允许在元素 iframe 上使用属性 iframe。从第 192 行,第 17 列;到第 192 行,第 373 列"

如果您需要更多代码,请告诉我。

<div id="map"><iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2624.2216096807224!2d2.347636915674888!3d48.87305177928887!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47e66e145ccb3091%3A0x9495beee8c96ec27!2s25+Rue+d&#39;Hauteville%2C+75010+Paris!5e0!3m2!1sfr!2sfr!4v1546423495666" width="600" height="750" iframe style="border:0" allowfullscreen></iframe>    

您有一个包含多个属性的 <iframe> 元素(标签),其中一个是单词 iframe... height="750" iframe style="border:0" ... )。

验证者说属性iframe不被识别 - 标准中没有定义这样的属性,所以它不应该存在。

最新更新