原创 CSS Font

Font families There are two types of font family names: generic family 通用字體系統 - a group of font families with a similar

原创 JS 函數的執行和引用

注:僅是個人理解,如果有誤,望指正,提前感謝。 以onclick Event爲例。 In HTML: <element οnclick="myScript"> In JavaScript: object.οnclick=function(

原创 HTML Attributes

HTML Attributes (case-insensitive 大小寫不敏感) Attributes provide additional information about an element, always specified

原创 vs. element in css

Summary The html and body elements are distinct block-level entities, in a parent/child relationship.The html element'

原创 CSS Links & Tables

Link Links can be styled differently depending on what state they are in. CSS超鏈接除了可以設定基本的性質,如:顏色、背景色,還可以根據他們所處的狀態來樣式化。

原创 CSS Attribute Selectors

Attribute Selector 可以對那些擁有指定屬性或屬性值的HTML元素樣式化設置。 Note: IE7 and IE8 support attribute selectors only if a !DOCTYPE is spe

原创 Keep your footer show at the bottom of the page

如何使網頁的footer顯示在頁面最下方。這裏討論的不是讓footer固定在viewport(或瀏覽器窗口)底部,而是頁面的底部。具體來說分兩種情況。 1. long page When a page contains a large a

原创 CSS Box Model & Outlines & Dimension

Box Model In CSS, the term "box model" is used when talking about design and layout. 所有HTML元素都可以被視爲是“盒子”。當談論設計和佈局時會使用到

原创 CSS Background

該性質是用於定義一個元素的背景效果。 Background-color 該性質用來指定一個元素的背景顏色。 注意: The background of an element is the total size of the element

原创 CSS Pseudo-classes & Pseudo-elements

Pseudo-classes A Pseudo-class is used to define a special state of an element. CSS僞類是用於給一個元素定義一個特殊的狀態。 語法: selector:ps

原创 CSS Border & Padding & Margin

Border Border style The border-style property specifies what kind of border to display. 該性質指定了要顯示哪一種邊框。 Note: None of t

原创 HTML Lists

HTML Lists Unordered HTML List 無序列表 Starts with the <ul> tag. Each list item starts with the <li> tag. <ul> <li>Cof

原创 Event order

Two models W3C model The web developer, can choose whether to register an event handler in the capturing or in the b

原创 CSS Units

CSS has several different units for expressing a length. Many CSS properties take "length" values, such as width, margi

原创 HTML Web Storage

Web Storage API的出現,使得開發者可以將需要跨請求重複訪問的數據直接存儲在客戶端的瀏覽器中,還可以在關閉瀏覽器很久再次打開時恢復數據,以減小網絡流量。 Cookies vs. Local Storage 在H5之前,應用數