问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/25267688/stuffing-html-in-an-about-url-with-chrome