Skip to content

Instantly share code, notes, and snippets.

@LeeDDHH
Last active November 3, 2021 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeeDDHH/edfd9e71c502cd41449d9a4cf3193481 to your computer and use it in GitHub Desktop.
Save LeeDDHH/edfd9e71c502cd41449d9a4cf3193481 to your computer and use it in GitHub Desktop.
web開発時に役立つスニペット

すべての要素に対して赤枠を指定する

Array.from(document.getElementsByTagName("*")).map(e => e.style.border = "1px solid red");

すべての要素に対してアウトラインだけ赤枠を指定する

Array.from(document.getElementsByTagName("*")).map(e => e.style.outline = "1px solid red");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment