几行css代码让页面自动刷新

736 阅读1分钟

在html的body里面写上style标签,设置style标签的样式 style="display: block",并且可编辑 contenteditable="true"

就像这样

<body>
  <style style="display:  block" contenteditable="true">
    html {
      background-color: red;
    }
  </style>
</body>