Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8767

#(シャープ)と.(ドット)の違い

$
0
0
結論 HTML要素のID属性を指定する場合が #(シャープ) です。 HTML要素のクラス属性を指定する場合が .(ドット) です。 #(シャープ) html <p id="hoge">hogeです</p> css #hoge{ /*ccsを記載*/ } .(ドット) html <div class="hoge">hogeです</p> css .hoge{ /*ccsを記載*/ }

Viewing all articles
Browse latest Browse all 8767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>