<iframe title="This is the contract preview" src={dd} width="100%" height="100%" frameBorder="0" ></iframe> 在使用 标签时 元素必须具有唯一的title属性,以向用户指示其内容 文档 frameBorder=“0” 有无边框 属性 应该大写 当react-safe-html渲染iframe时,它会导致DOM属性无效frameborder 来自GitHub 中的讨论 1 讨论1.