webかたつむり ウェブデザインを勉強中 ウェブ初心者のおぼえがき

webかたつむり

WEB制作会社のフォトグラファー

2017-01-09から1日間の記事一覧

DOM, node について

DOM document object model documentのツリー構造そのものなのか? node DOMツリーにぶら下がっているオーナメント。 それぞれのHTML要素。 nodeとは瘤のこと。

jQuery append prepend

before リファレンスするのは「.vacation」。 このクラスの要素に対して前に配置する、これがbefore。 「.vacation」との繋がりはない。(関係性がない) after beforeの反対。これも関係性はない。 prepend 「first child」として追加する。 「.vacation」…

jQuery selector まとめ

基本形 $(" "); これさえ知っていればあとはCSSと同じ。 $("li"); $("p"); $(#id); $(".class"); $("#id li"); $(".class li"); pseudo selector pseudo 擬似 :first :last :odd :even liのindexは、先頭が「0」(配列と同じ) ゆえにeven(偶数)、は先頭…

アコーディオンメニュー js

function showHide() { var para1 = document.getElementById('news1Paragraph'); var para2 = document.getElementById('news2Paragraph'); para1.style.display = 'block'; para2.style.display = 'none'; var title1 = document.getElementById('news1Tit…

Date(); の復習 / 日付の表示

<body> <h1 id="now" style="color: red; textalign: center; margin: 0 auto; width: 600px;"></h1> <script> function now(){ now = new Date(); year = now.getFullYear()+'年'; month = (now.getMonth()+1)+'月'; date = now.getDate()+'日'; hours = now.getHours()+'時'; minutes = now.getMinutes()+'分'; seconds = now.…</body>