閱讀我的RSS我在 非常計算機 反過來導致 發表 由JoséJesúsPérezAguinaga撰寫,他向我們展示瞭如何使用格式 數據URI 以及HTML5的強大功能和一個名為“內容可編輯”,使我們可以創建可用作記事本的HTML頁面。
我們只需要在地址欄中輸入:
data:text/html, <html contenteditable>
在 發表 由JoséJesúsPérezAguinaga撰寫的其他一些值得關注的示例通過評論出現:
data:text/html, <textarea style="font-size: 1.5em; width: 100%; height: 100%; border: none; outline: none" autofocus />
data:text/html, <html><head><link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'><style type="text/css"> html { font-family: "Open Sans" } * { -webkit-transition: all linear 1s; }</style><script>window.onload=function(){var e=false;var t=0;setInterval(function(){if(!e){t=Math.round(Math.max(0,t-Math.max(t/3,1)))}var n=(255-t*2).toString(16);document.body.style.backgroundColor="#ff"+n+""+n},1e3);var n=null;document.onkeydown=function(){t=Math.min(128,t+2);e=true;clearTimeout(n);n=setTimeout(function(){e=false},1500)}}</script></head><body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
data:text/html, <body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
data:text/html, <title>Text Editor</title><body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">
我試穿了 Firefox y 鉻 我想它應該可以在任何其他支援 HTML5 的瀏覽器中運行。