Sideway BICK BlogSideway BICK BLOG from Sideway

A Sideway to Sideway Home

Link:http://output.to/sideway/default.asp?qno=101000009

Cascading Style Sheets

Cascading Style Sheet

The introduction of cascading style sheet (CSS) to the HTML document is to separate the rendering information from the HTML document contents. The presentation attributes of elements are rearrange into cascading styles separately. However, the CSS specification is still very flexible in applying CSS to HTML because all HTML tags always have their own initial value preset by browser and all browsers have their own rendering engine.

CSS Processing Model

The key purpose of CSS is to generate a cascading style model from the source document. The output of the cascading style model is the canvas. Selectors and properties are used by the CSS engine to address the HTML document and to parse the source document.

The CSS canvas

In general, the canvas is a virtual space on which the cascading style model is rendered. The canvas is infinite for each dimension of the space, however user agents may impose limits on the dimnsions of the viewport. The virtual space is arranged in layer form in the z-dimension. While each layer is the virtual flat canvas where the cascading style model is rendered.

CSS Addressing Model

Selectors and properties are used as CSS rules by CSS to address the elements of the source document. CSS properties can be directly assign to elements in the document. Or CSS properties can be assign through selector matching to elements in the document.

CSS Syntax

The CSS language has a very simple form with a few elements.

CSS PropertyThe basic item of CSS is rendering properties which are used to replace the rendering attributes of a HTML tag. Rending properties can either be used as the parameter of style attributes of a element tag for rendering a specified tag, or be a property declaration of a CSS rule set. For example, CSS property color with value blue: <h2 style="color: blue">
h2 {color: blue;}
CSS DeclarationA CSS declaration is to assign a legal value to a specified CSS property. A declaration may be empty or consists of a property name, followed by a colon ':" and the specipied property value. For example, a declaration of property color with value blue: "color: blue"
{color: blue;}
CSS Rule SetThe basic component of CSS is CSS rule sets or CSS rules. A CSS rule consists of a selector and a declaration. A declaration comprises of a rendering property and a rendering value. Rendering rules are then applied to a particular element tag by selector matching. For example, a selector, h2 with a declaration consists of properties, color with value blue and background-color with value cyan. h2 { color: blue; background-color:cyan; } important ruleBy default, an ordinary author CSS rule declarations have a more weight than an ordinary user CSS rule declarations. A type of important CSS rule declaration is introduced such that an important CSS rule declaration always has more weight than ordinary normal CSS rule declaration and an user important CSS rule declaration always reversively has more wight than author or other important CSS rule claration. An important declaration is specified by a dellimier token '!' and keyword 'important' following the normal CSS rule declaration. <h2 style="color: blue !important">
h2 {color: blue !important;}
at-ruleAn at-rule is a rule set for the CSS engine instead of matching with the element tag. An at-rule can therefore be used to instructs how the CSS engine to behave. An at-rule begins with at-sign, '@' with unicode U+0040, and immediately followed by a keyword identifier. @charset "utf-8; CommentLike other language, a comment block allows author to enter notes into CSS that will not be interpreted as CSS rules. A comment begins with "/*" and ends with "*/", and all stuff in between are CSS comments. /* comment */
/*
comment1
comment2
*/

CSS Rule

According to the source of CSS rules, there are two types of CSS rules

Direct Specifying CSS Rule

Properties of CSS rule declaration are directly assigned to the 'style' attribute of the elements of a document.

<h2 style="color:red">

Indirect Matching CSS Rule

Properties of CSS rule declaration are indirectly assigned to the elements of a document through cascaded selector matching mechanism in form of CSS rule set.

A CSS rule set consists of a selector and a declaration block. The selector is used to match the element of the document and the declaration block is then assigned to the element accordingly. The declaration block contains one or more declarations of format, CSS property name and corresponding value pair.

h2 {color: blue}

Example

HTML Document Input:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
p {background-color:cyan;border:1px solid black;margin:5px;padding:5px}
</style>
<title>Sample Page</title>
    </head>
    <body>
<h2 style="color:red">Example of direct specifying CSS rule</h2>
<p>Example of indirect matching CSS rule</p>
    </body>
</html>
HTML Web Page Embedded Output:

not support

CSS Styling Method

Style rules of CSS can be specified directly to an element through an inline style attribute or be specified indirectly through matching with a selector.

Method of Direct Specifying

For method of specifying CSS rules using 'style' attribute in an element, the CSS styling method is rigid. CSS rules are declared as the paraemeter of the 'style' attribute. Multiple CSS rules can be declarated by separating each declaration with a delimiter ';'.

<p style="color:blue">
<h2 style="background color:cyan;color:red">

Although CSS rules can be applied to individual element in the HTML document directly, this is not the best way of using CSS to render a source document.

Method of Indirect Matching

For method of matching selectors with an element according to pattern, the CSS styling method is more flexible and powerful. The matching mechanism is based on matching all rule sets against all available CSS of the document. A rule set consists of a selector followed by a declaration block. The selector is actually the CSS pattern matching rules used to determine which declaration block to be applied to elements of the source document. According to the type of matching pattern, selector can be divided in simple selector, compound selector, complex selector, and selector list. A declaration block is a set of CSS declarations enclosed by a pair of curly brace, '{}'. The set of CSS declarations is a list of zero or more semicolon-separated, ';' declarations.

h1, h2 { font-weight: bold }
p { font-weight: bold;font-size: 12px }

The Creator

Style sheets may have three different creators, author, user, and user agent.

Author:The author may specify style sheets for a source document. User:A user may also be able to specify style information for a particular document. User agent:A user agent must apply a default style sheet according to the CSS specification such that the presentation of the document can satisfy general presentation expectations for the document language.

Types of Style Sheet

In general, there are a few ways for author to attach rendering information to a HTML document.

Inline Style style element attributes are used to implement the rendering style as the attributes of an element. <h2 style="color: blue"> Embedded Style A style section is included in the head section of HTML document for grouping all rendering styles <style type="text/css">h2  { color: blue }</style> External Style Sheet All the rendering styles are grouped into an style sheet and is linked to the HTML document by a link in the head section after the <title> element. <link rel="stylesheet" type="text/css" href="external.css" /> Importing Style Sheet External style sheet is imported to a cascading style sheet by an importing rule at the beginning of a cascading style sheet. @import url("external.css");

CSS Standard

CSS References..........

Link:http://output.to/sideway/default.asp?qno=160700024

ShuowenJiezi Chinese Character Radicals 𠊊

Chinese ShuowenJiezi Radical 180 𠊊(U+2028A)

Section 分部Character
漢字 82
𠊊
U+2028A
open
close
一米也从皀亼聲或說亼皀也凡食之屬皆从食乘力切
last updated 27July2015
01
𩞑
U+29791
open
close
滫飯也从食𠦪聲臣鉉等曰𠦪音忽非聲疑𢍃字之誤府文切
last updated 27July2015
U+9959
open
close
𩞑或从賁
last updated 27July2015
U+9934
open
close
𩞑或从𢍃
last updated 27July2015
𩞷
U+297B7
open
close
飯气蒸也从食畱聲力救切
last updated 27July2015
U+98EA
open
close
大孰也从食壬聲如甚切
last updated 27July2015
U+43D5
open
close
古文飪
last updated 27July2015
U+6041
open
close
亦古文飪
last updated 27July2015
𩟷
U+297F7
open
close
孰食也从𠊊雝聲於容切
last updated 27July2015
U+98F4
open
close
米糱煎也从𠊊台聲与之切
last updated 27July2015
𩛛
U+296DB
open
close
籀文飴从異省
last updated 27July2015
𩛿
U+296FF
open
close
飴和饊者也从𠊊易聲徐盈切
last updated 27July2015
𩟴
U+297F4
open
close
熬稻粻䅣也从食𢿨聲穌旱切
last updated 27July2015
U+9920
open
close
麪餈也从𠊊幷聲必郢切
last updated 27July2015
U+9908
open
close
稻餠也从食次聲疾資切
last updated 27July2015
U+4B63
open
close
餈或从齊
last updated 27July2015
U+7CA2
open
close
餈或从米
last updated 27July2015
U+9958
open
close
糜也从𠊊亶聲周謂之饘宋謂之餬諸延切
last updated 27July2015
U+9931
open
close
乾𠊊也从𠊊侯聲周書曰峙乃𩝍粻乎溝切
last updated 27July2015
U+9925
open
close
𩝍也从𠊊非聲陳楚之間相謁𠊊麥飯曰餥非尾切
last updated 27July2015
U+994E
open
close
酒𠊊也从𠊊喜聲曰可以饙饎 昌志切
last updated 27July2015
𩜮
U+2972E
open
close
饎或从巸
last updated 27July2015
U+7CE6
open
close
饎或从米
last updated 27July2015
U+4275
open
close
具𠊊也从𠊊算聲士戀切
last updated 27July2015
U+994C
open
close
籑或从巽
last updated 27July2015
U+990A
open
close
供養也从食羊聲余兩切
last updated 27July2015
𢽁
U+22F41
open
close
古文養
last updated 27July2015
U+98EF
open
close
𠊊也从𠊊反聲符萬切
last updated 27July2015
𩚖
U+29696
open
close
雜飯也从𠊊丑聲女久切
last updated 27July2015
U+98E4
open
close
糧也从人、𠊊祥吏切
last updated 27July2015
U+9961
open
close
以羹澆飯也从𠊊贊聲則榦切
last updated 27July2015
𩞧
U+297A7
open
close
晝𠊊也从𠊊象聲書兩切
last updated 27July2015
𩞃
U+29783
open
close
𩞧或从傷省聲
last updated 27July2015
𩚏
U+2968F
open
close
餔也从夕𠊊思魂切
last updated 27July2015
U+9914
open
close
日加申時𠊊也从𠊊甫聲博狐切
last updated 27July2015
𥂈
U+25088
open
close
籀文餔从皿浦聲
last updated 27July2015
U+9910
open
close
吞也从𠊊𣦼聲七安切
last updated 27July2015
U+6E4C
open
close
餐或从水
last updated 27July2015
U+4B51
open
close
嘰也从𠊊兼聲讀若風溓溓一曰廉潔也力鹽切
last updated 27July2015
U+9941
open
close
餉田也从𠊊盍聲曰饁彼南𤱑筠輒切
last updated 27July2015
U+995F
open
close
周人謂餉曰饟从𠊊襄聲人漾切
last updated 27July2015
U+9909
open
close
饟也从𠊊向聲式亮切
last updated 27July2015
𩟱
U+297F1
open
close
餉也从𠊊𧷈聲求位切
last updated 27July2015
U+9957
open
close
鄉人飲酒也从𠊊从鄉鄉亦聲許兩切
last updated 27July2015
U+995B
open
close
盛器滿皃从𠊊䝉聲曰有饛簋飱莫紅切
last updated 27July2015
U+98F5
open
close
楚人相謁𠊊麥曰飵从𠊊𠆦聲𡉈各切
last updated 27July2015
U+4B2F
open
close
相謁𠊊麥也从𠊊占聲奴兼切
last updated 27July2015
U+4B61
open
close
秦人謂相謁而𠊊麥曰䭡䭓从𠊊㥯聲烏困切
last updated 27July2015
U+4B53
open
close
䭡䭓也从𠊊豈聲五困切
last updated 27July2015
U+992C
open
close
寄𠊊也从𠊊胡聲戶吳切
last updated 27July2015
U+98F6
open
close
𠊊之香也从𠊊必聲曰有飶其香毗必切
last updated 27July2015
𩜈
U+29708
open
close
燕𠊊也从𠊊芺聲曰飲酒之𩜈依據切
last updated 27July2015
U+98FD
open
close
猒也从𠊊包聲博巧切
last updated 27July2015
𩜿
U+2973F
open
close
古文飽从𤓽
last updated 27July2015
𩜕
U+29715
open
close
亦古文飽从戼聲
last updated 27July2015
U+4B3C
open
close
猒也从𠊊肙聲烏玄切
last updated 27July2015
U+9952
open
close
飽也从𠊊堯聲如昭切
last updated 27July2015
U+9918
open
close
饒也从𠊊余聲以諸切
last updated 27July2015
U+9900
open
close
𠊊臭也从𠊊艾聲爾雅曰餀謂之緣呼艾切
last updated 27July2015
U+991E
open
close
送去也从𠊊戔聲曰顯父餞之才線切
last updated 27July2015
U+992B
open
close
野饋曰餫从𠊊軍聲王問切
last updated 27July2015
U+9928
open
close
客舎也从𠊊官聲周禮五十里有市市有館館有積以待朝聘之客古玩切
last updated 27July2015
U+9955
open
close
貪也从𠊊號聲土刀切
last updated 27July2015
U+53E8
open
close
饕或从口刀聲
last updated 27July2015
𧈐
U+27210
open
close
籀文饕从號省
last updated 27July2015
U+98FB
open
close
貪也从𠊊殄省聲春秋傳曰謂之饕飻他結切
last updated 27July2015
U+9956
open
close
飯傷𤍠也从𠊊歲聲於廢切
last updated 27July2015
U+9950
open
close
飯傷溼也从𠊊壹聲乙冀切
last updated 27July2015
U+9932
open
close
飯餲也从𠊊曷聲論語曰𠊊饐而餲乙例切又烏介切
last updated 27July2015
U+9951
open
close
穀不孰爲饑从𠊊幾聲居衣切
last updated 28July2015
U+9949
open
close
蔬不孰爲饉从𠊊堇聲渠吝切
last updated 28July2015
𩚬
U+296AC
open
close
飢也从𠊊戹聲讀若楚人言恚人於革切
last updated 28July2015
U+9927
open
close
飢也从𠊊委聲一曰魚敗曰餧奴罪切
last updated 28July2015
U+98E2
open
close
餓也从𠊊几聲居夷切
last updated 28July2015
U+9913
open
close
飢也从𠊊我聲五箇切
last updated 28July2015
U+993D
open
close
吳人謂祭曰餽从𠊊从鬼鬼亦聲俱位切又音饋
last updated 28July2015
U+991F
open
close
祭酹也从𠊊叕聲陟衞切
last updated 28July2015
U+4B3D
open
close
小餟也从𠊊兌聲輸芮切
last updated 28July2015
𩜁
U+29701
open
close
馬𠊊穀多气流四下也从𠊊夌聲里甑切
last updated 28July2015
U+4B34
open
close
𠊊馬穀也从𠊊末聲莫撥切
last updated 28July2015
02
U+9915
open
close
𠊊之餘也从𠊊夋聲子峻切
last updated 28July2015
U+993B
open
close
餌屬从𠊊羔聲古牢切
last updated 28July2015

Sideway BICK Blog

20/07


Copyright © 2000-2020 Sideway . All rights reserved Disclaimerslast modified on 26 January 2013