开发者

How to show html template using inline styles only?

开发者 https://www.devze.com 2022-12-30 21:46 出处:网络
I want to display html template in a webpage. The styles of that template is specified inline. But when i try to display it in my webpage, some styles that are defined in my css are adding into it and

I want to display html template in a webpage. The styles of that template is specified inline. But when i try to display it in my webpage, some styles that are defined in my css are adding into it and开发者_Python百科 the template is not displayed properly. This template is used to create mails and when i send this template as mail to my gmail account it is displayed correctly. How its done in gmail? How they show the template using inline styles only?


The question is actually pretty clear. I think you're looking for an iframe tag. That will allow you to display a document within another page, with its own independent style.

One thing to add: if you ever wonder how another site does something, just install firebug (on Firefox) and check out their source.


I solved this problem using the tinymce editor. I used tinymce editor in read mode and displayed the html template in it. I dont know whether its correct method or not. But it was perfect for my requirement. Thanks Greg for your reply..:)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号