文章加密

;

2018年3月29日 星期四

CSS for when JavaScript is Enabled

document.documentElement.className = "js"

This adds a class to the root <html>, so you could (for example) do something like hide a <div> only when JavaScript is enabled.

.js div#id { display: none; }



reference:
https://css-tricks.com/snippets/javascript/css-for-when-javascript-is-enabled/

沒有留言:

張貼留言