使用Chrome在about:URL中填充HTML [英] Stuffing HTML in an about: URL with Chrome

查看:140
本文介绍了使用Chrome在about:URL中填充HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  about:< body bgcolor =红色和GT; 

屏幕会变成红色。



是否有一个等效的heredoc语法用于通过Chrome中的URL加载HTML?

解决方案

数据URI,也许?

  data:text / html,< body bgcolor = red>具有讽刺意味的是,这不适用于IE浏览器,尽管 MSDN声称这是出于安全原因。


In Internet Explorer back in the day you could type this into the URL bar:

about:<body bgcolor=red>

And the screen would turn red.

Is there an equivalent "heredoc" syntax for loading HTML via a URL in Chrome?

解决方案

A data URI, perhaps?

data:text/html,<body bgcolor=red>

Ironically, this does not work on IE, although MSDN claims this is due to security reasons.

这篇关于使用Chrome在about:URL中填充HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆