容器特性
網頁的排版都是有關於容器的設計
Learn More →
Learn More →
CSS Reset 清除樣式
一般都會有預設樣式
Learn More →
如何清除預設樣式
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
Learn More →
Learn More →
先放客製化 再寫上自己設定的CSS樣式 會吃後面的設定
h1{
color:palevioletred;
font-size: 20px;
}
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
h1{
color:palevioletred;
font-size: 20px;
}
Learn More →
區塊元素
display:block
Learn More →
HTML標籤
H1->區塊元素
P->區塊元素
li->區塊元素
可於CSS設定 color, background 來查看是否為
區塊元素
background: blue;
color:white;
Learn More →
行內元素常用在段落裡
一個網頁最重要的內容會是h1 一個網也只會有一個h1 codepen介紹 7--網頁組成元素 html包含:head, body head裡面的title 就頁面上分頁的名稱 body是網頁內呈現的內容 包含h1標題 跟p 段落 <!DOCTYPE html> #表示格式是html5
Mar 24, 2021Javascript學習 六角學院:JavaScript工程師養成 1. VS Code網頁編輯器、HTML基礎教學 - HackMD 2.CSS常用語法 - HackMD 3.使用CSS變更HTML標籤特性 - HackMD 六角學院:JavaScript特訓 1.變數與資料類型 - HackMD
Mar 24, 20211.HTML CSS 簡介 HTML:結構 h1 p CSS:樣式 2.插入CSS檔案 寫一個H1讓文字變色 在html內 加上 快速輸入 link:css +enter <link rel="stylesheet" href="style.css">
Mar 23, 2021let const var 詳細介紹 1-- let let宣告變數後 要修改 直接寫變數 =值 就可了 let可以修改複寫既有的值 2-- const 不能修改單純型別的值
Mar 20, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up