简体   繁体   English

我正在尝试在 React Js 中显示由 html 组成的 email

[英]I am trying to display email consisting of html in React Js

I am trying to display a page html in React Js But I don't get the same look This is the code I used in React js <div dangerouslySetInnerHTML={{ __html: data }}/> This is the page when it's executed in html enter image description here This is the page when it's executed in React js enter image description here我正在尝试在 React Js 中显示页面 html 但我没有得到相同的外观 这是我在 React js 中使用的代码<div dangerouslySetInnerHTML={{ __html: data }}/>这是执行时的页面html enter image description here这是在React js中执行时的页面enter image description here

I used tag iframe and it worked <iframe srcdoc={data}/>我使用了标签 iframe 并且它有效<iframe srcdoc={data}/>

暂无
暂无

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

相关问题 我正在尝试主动跟踪用户坐标并在js中显示一行 - I am trying to actively track user coordinates and display a line in js 我正在尝试使用 React js 在电话簿应用程序上创建一个删除按钮 - I am trying to make a delete button on phonebook app with React js 我正在尝试下载React js,但是又一次又一次出现此错误? - I am trying to download React js, but I am getting this error again and again? 我试图在html中显示ajax结果,但是append()函数显示原始html标签。 - I am trying to display ajax result in html but append() function displays raw html tags . 我正在尝试使用 Fluent UI 在 React JS 中创建一个表单,但我注意到在日期选择器中我丢失了所有图标 - I am trying to create a form in React JS using Fluent UI but the thing I noticed is that in the date picker I am missing all the icons 我正在尝试获取外部xml数据并将其显示在html页面中 - I am trying to grab external xml data and display it in my html page 我试图在悬停时显示一个块图像,但无法获取它; 与CSS3和HTML - I am trying to display a block image on hover but just cant get it; with css3 and Html Vue.js 数据未在视图中显示我正在尝试显示仅显示空白的待办事项列表 - Vue.js Data not Displaying in view i am trying to display todo list which just displaying blank 我正在尝试使用onmouseover事件编写js代码以在div中显示图像 - I am trying to write js code to display an image in a div using onmouseover event 我试图在单击复选框时显示div - I am trying to display a div on click of a checkbox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM