How come certain random strings produce colors when entered as background colors in HTML? 在HTML中做为背景色输入时,某些随机字符串如何产生颜色? For example: 例如: html
<body bgcolor="chucknorris"> test </body>
...produces a document with a red background across all browsers and platforms. ...在全部浏览器和平台上产生背景为红色的文档。 浏览器
Interestingly, while chucknorri
produces a red background as well, chucknorr
produces a yellow background. 有趣的是,虽然chucknorri
产生红色背景,但chucknorr
产生黄色背景。 dom
What's going on here? 这里发生了什么? ide