財金程式設計461文件物件模型DOM
介紹純文字編輯器EDITOR與瀏覽器BROWSER
介紹哈佛大學資訊科學課程CS505
上課內容HTML, CSS, JAVASCRIPT, PYTHON是哈佛大學CS50的主要內容
CSS是階層樣式表(Cascading Style Sheet)三種使用方式:線內(in-line)、內部(internal)、外部(external)
CSS是階層樣式表三種使用方式:線內(in-line)、內部(internal)、外部(external)
CSS三種使用方式:
- 線內(in-line): 在標記指令內STYLE="..."
- 內部(internal): 用STYLE/STYLE定義區塊
- 外部(external): 另外.CSS檔案,讀取指令LINK REL HREF=
CSS內部(internal)法用STYLE/STYLE定義區塊
CSS內部(internal)就是使用網頁內STYLE/STYLE然後有三種設定方式:元素標記、類別CLASS、ID識別
JAVASCRIPT使用方式分:線內(in-line)、內部(internal)、外部(external),前者類似CSS內部法,而以SCRIPT/SCRIPT定義區塊
JAVASCRIPT三種使用方式:
- 線內(in-line): 只能使用於內建函數(方法)
- 內部(internal): 用SCRIPT/SCRIPT定義區塊
- 外部(external):另外.JS檔案,讀取指令SCRIPT SRC=/SCRIPT
程式語言最重要的三個結構:函數function、迴圈、判斷。
Paragraph, Click按下, ONCLICK按下滑鼠事件event
以上的程式碼
<body>
<p>介紹純文字編輯器EDITOR與瀏覽器BROWSER</p>
<p>介紹哈佛大學資訊科學課程CS505</p>
<p>上課內容HTML, CSS, JAVASCRIPT, PYTHON是哈佛大學CS50的主要內容</p>
<p>CSS是階層樣式表(Cascading Style Sheet)三種使用方式:線內(in-line)、內部(internal)、外部(external)</p>
<p>CSS是階層樣式表三種使用方式:線內(in-line)、內部(internal)、外部(external)</p>
<p>CSS三種使用方式:<ul>
<li>線內(in-line): 在標記指令內STYLE="..."</li>
<li>內部(internal): 用STYLE/STYLE定義區塊</li>
<li>外部(external): 另外.CSS檔案,讀取指令LINK REL HREF=</li></ul></p>
<p>CSS內部(internal)法用STYLE/STYLE定義區塊</p>
<p>CSS內部(internal)就是使用網頁內STYLE/STYLE然後有三種設定方式:元素標記、類別CLASS、ID識別</p>
<p>JAVASCRIPT使用方式分:線內(in-line)、內部(internal)、外部(external),前者類似CSS內部法,而以SCRIPT/SCRIPT定義區塊</p>
<p>JAVASCRIPT三種使用方式:<ul>
<li>線內(in-line): 只能使用於內建函數(方法)</li>
<li>內部(internal): 用SCRIPT/SCRIPT定義區塊</li>
<li>外部(external):另外.JS檔案,讀取指令SCRIPT SRC=/SCRIPT</li></ul></p>
<p>程式語言最重要的三個結構:<b>函數function</b>、迴圈、判斷。</p>
<p>Paragraph, Click按下, ONCLICK按下滑鼠事件event</p>
<button onclick="MONEY()">自己的名字按下執行</button>
<!-- BUTTON ONCLICK="MY()">改變背景顏色</BUTTON-->
</body>
<script>
function MONEY() {
const paragraphs = document.querySelectorAll("p");
for (let i = 0; i < paragraphs.length; i++) {
paragraphs[i].style.background = "darkgreen";
paragraphs[i].style.color = "white";
/* if (i % 2 == 0) paragraphs[i].style.background = "blue";*/
}
document.body.style.backgroundColor = "skyblue";
}
</script>
12:03最後的示範
<STYLE>.a{font-size:2em;
border: 5px solid red;
border-radius: 20px;
background-color: yellow;}
.b{font-size:2em; color: white;
border: 5px solid red;
border-radius: 20px;
background-image: linear-gradient(to right, green, blue)}
</STYLE>
<body>
<p class="a">介紹純文字編輯器EDITOR與瀏覽器BROWSER</p>
<p class="b">介紹哈佛大學資訊科學課程CS505</p>
<p>上課內容HTML, CSS, JAVASCRIPT, PYTHON是哈佛大學CS50的主要內容</p>
<p>CSS是階層樣式表(Cascading Style Sheet)三種使用方式:線內(in-line)、內部(internal)、外部(external)</p>
<p>CSS是階層樣式表三種使用方式:線內(in-line)、內部(internal)、外部(external)</p>
<p>CSS三種使用方式:<ul>
<li>線內(in-line): 在標記指令內STYLE="..."</li>
<li>內部(internal): 用STYLE/STYLE定義區塊</li>
<li>外部(external): 另外.CSS檔案,讀取指令LINK REL HREF=</li></ul></p>
<p>CSS內部(internal)法用STYLE/STYLE定義區塊</p>
<p>CSS內部(internal)就是使用網頁內STYLE/STYLE然後有三種設定方式:元素標記、類別CLASS、ID識別</p>
<p>JAVASCRIPT使用方式分:線內(in-line)、內部(internal)、外部(external),前者類似CSS內部法,而以SCRIPT/SCRIPT定義區塊</p>
<p>JAVASCRIPT三種使用方式:<ul>
<li>線內(in-line): 只能使用於內建函數(方法)</li>
<li>內部(internal): 用SCRIPT/SCRIPT定義區塊</li>
<li>外部(external):另外.JS檔案,讀取指令SCRIPT SRC=/SCRIPT</li></ul></p>
<p>程式語言最重要的三個結構:<b>函數function</b>、迴圈、判斷。</p>
<p>Paragraph, Click按下, ONCLICK按下滑鼠事件event</p>
<button onclick="MONEY()">自己的名字按下執行</button>
<!-- BUTTON ONCLICK="MY()">改變背景顏色</BUTTON-->
</body>
<script>
function MONEY() {
const paragraphs = document.querySelectorAll("p");
for (let i = 0; i < paragraphs.length; i++) {
paragraphs[i].style.background = "darkgreen";
paragraphs[i].style.color = "white";
/* if (i % 2 == 0) paragraphs[i].style.background = "blue";*/
}
document.body.style.backgroundColor = "skyblue";
}
</script>
https://egdvcn-gh.blogspot.com/2024/09/461dom.html
回覆刪除https://yehjungwen.blogspot.com/2024/09/461dom.html
回覆刪除作者已經移除這則留言。
回覆刪除https://laichia-jung.blogspot.com/2024/09/461dom.html
回覆刪除https://guovupvmp.blogspot.com/2024/09/blog-post_29.html
回覆刪除https://djhdvdhd.blogspot.com/2024/09/blog-post_29.html
回覆刪除https://academic-fraud-hunter.blogspot.com/2024/09/461dom.html
回覆刪除作者已經移除這則留言。
回覆刪除https://htmlcss-hsiao.blogspot.com/2024/09/dom.html
回覆刪除作者已經移除這則留言。
回覆刪除https://h5ying.blogspot.com/2024/09/461dom.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://d11317133.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除作者已經移除這則留言。
回覆刪除https://zhuo-you-wen.blogspot.com/2024/09/20240930.html
回覆刪除https://huangchenyang.blogspot.com/2024/09/editorbrowser-cs505-container-width.html
回覆刪除https://hsulining9999.blogspot.com/2024/09/dom.html
回覆刪除https://sklnfijseifjsk.blogspot.com/2024/09/dom.html
回覆刪除https://huangjunzhu.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除https://chiu-wei-jie.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript_4.html
回覆刪除https://yichen0617.blogspot.com/2024/09/dom.html
回覆刪除https://jiang233.blogspot.com/2024/09/dom.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://syx0304syx.blogspot.com/2024/09/461dom.html
回覆刪除https://wwersseraaer.blogspot.com/2024/09/461dom.html
回覆刪除https://xie-ni.blogspot.com/2024/09/461dom.html
回覆刪除https://zzy-hn.blogspot.com/2024/09/930.html
回覆刪除https://wei1029.blogspot.com/2024/09/blog-post.html
回覆刪除https://leeyanxun.blogspot.com/2024/09/blog-post_29.html
回覆刪除https://lupeiying.blogspot.com/2024/09/dom.html
回覆刪除https://htmlsyuan.blogspot.com/2024/09/blog-post.html
回覆刪除https://ting950214.blogspot.com/2024/09/461dom.html
回覆刪除https://chang-yam-ci.blogspot.com/2024/09/461dom.html
回覆刪除https://lu-chieh-chi.blogspot.com/2024/09/461dom.html
回覆刪除https://anson0501.blogspot.com/2024/09/461dom.html
回覆刪除https://yuxi1202.blogspot.com/2024/09/blog-post.html
回覆刪除https://jjjjiaying.blogspot.com/2024/09/dom.html
回覆刪除https://lintingyang11317134.blogspot.com/2024/09/blog-post.html
回覆刪除https://yuanxuzhi.blogspot.com/2024/09/blog-post_62.html
回覆刪除https://yezonghan.blogspot.com/2024/09/461dom.html
回覆刪除https://wihfaw.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript_29.html
回覆刪除https://takming123.blogspot.com/2024/09/blog-post.html
回覆刪除https://enxaing.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除作者已經移除這則留言。
回覆刪除https://andy1015.blogspot.com/2024/09/461dom.html
回覆刪除https://yangbokai.blogspot.com/2024/09/461dom.html
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/7786441128802274603/1921150478340722386
回覆刪除https://yuci0124.blogspot.com/2024/09/461dom.html
回覆刪除https://linchengxun.blogspot.com/2024/09/blog-post.htm
回覆刪除https://www.blogger.com/blog/post/edit/5412644157023439884/1657380530202771803
回覆刪除https://www.blogger.com/blog/post/edit/6368708880417042035/6253640340538428244
回覆刪除https://www.blogger.com/blog/post/edit/7977872183872967676/6157005801977551235
回覆刪除https://huutingyu.blogspot.com/2024/09/vs-code.html
回覆刪除https://xxxjkxxthf.blogspot.com/2024/09/blog-post.html
回覆刪除https://slu804387.blogspot.com/2024/09/vs-code.html
回覆刪除https://spy0928.blogspot.com/2024/09/461dom-9-29-2024.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://zyixnn.blogspot.com/2024/09/461dom-9-29-2024.html
回覆刪除https://julie1116q.blogspot.com/2024/09/461dom.html
回覆刪除https://kiannc1201.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除https://alemxy9852464.blogspot.com/2024/09/editorbrowser-cs505-html-css-javascript.html
回覆刪除https://chinenkohana.blogspot.com/2024/09/blog-post.html
回覆刪除第一次上課. https://chinenkohana.blogspot.com/2024/09/cssclassid.html
刪除https://yangsinmei.blogspot.com/2024/09/461dom.html
回覆刪除https://huangyunchieh.blogspot.com/2024/10/461dom.html
回覆刪除https://charlie778877.blogspot.com/2024/10/461dom.html
回覆刪除https://yangyoyo0125.blogspot.com/2024/10/blog-post.html
回覆刪除不要截取整個螢幕應付!https://yangyoyo0125.blogspot.com/2024/10/mohd-aman-0-css-margin-0-padding-0-box.html
刪除https://ypayupinan.blogspot.com/2024/10/blog-post.html
回覆刪除922.animation.https://ypayupinan.blogspot.com/2024/09/javascript.html
刪除