2017-04-11から1日間の記事一覧
シンタックスハイライトの使用テスト <style> p{ color:red; } div.box{ background:pink; } </style> <body> <p>ここに文字が入ります</p> <div class="box"> わーわーわー </div> </body> コードの表示は次回からこれを使おう~☝♡
CSS background-image 背景画像を画面サイズいっぱいに表示 body { background-image : url ( 画像のURL ) ; background-position : center center ; 上下左右中央に表示 background-repeat : no-repeat ; 繰り返しをしない background-attachment : fixed ;…
* JavaScript スクロール量の取得 * ◎HTML <p id="id名"></p> ◎jQuery $(function(){ $(window).scroll(function(){ var ◯◯ = $(document).scrollTop(); $('#id名').html(◯◯); }); }); ウィンドウ上部から何pxかを取得するためのjQuery TEST ▶▶ 上からpx 参考サイトさま http:…
TEST はてな?ブログ reikosugi.hateblo.jp