控制台技巧

UI界面技巧

1.添加outline
body * { outline: 1px solid red }
2.添加背景

  1. const style = document.createElement('style')
  2. document.getElementsByTagName('head')[0].append(style)
  3. style.innerHTML = `* { background-color: rgba(255, 0, 0, .2); }
  4. * * { background-color: rgba(0, 255, 0, .2); }
  5. * * * { background-color: rgba(0, 0, 255, .2); }
  6. * * * * { background-color: rgba(255, 0, 255, .2); }
  7. * * * * * { background-color: rgba(0, 255, 255, .2); }
  8. * * * * * * { background-color: rgba(255, 255, 0, .2); }
  9. `