浏览器页面可编辑 document.body.contentEditable='true'; 实时编写样式的输入框 <body> <style style="display:block; position: fixed;" contentEditable> * { background: yellow; } </style> </body>