CSSä¸å¯ä»¥åä¸å¯ä»¥ç»§æ¿çå±æ§ï¼
ä¸ãæ 继æ¿æ§çå±æ§
1ãdisplayï¼è§å®å ç´ åºè¯¥çæçæ¡çç±»å
2ãææ¬å±æ§ï¼
vertical-alignï¼åç´ææ¬å¯¹é½
text-decorationï¼è§å®æ·»å å°ææ¬çè£ é¥°
text-shadowï¼ææ¬é´å½±ææ
white-spaceï¼ç©ºç½ç¬¦çå¤ç
unicode-bidiï¼è®¾ç½®ææ¬çæ¹å
3ãçå模åçå±æ§ï¼widthãheightãmargin ãmargin-topãmargin-rightãmargin-bottomãmargin-leftãborderãborder-styleãborder-top-styleãborder-right-styleãborder-bottom-styleãborder-left-styleãborder-widthãborder-top-widthãborder-right-rightãborder-bottom-widthãborder-left-widthãborder-colorãborder-top-colorãborder-right-colorãborder-bottom-colorãborder-left-colorãborder-topãborder-rightãborder-bottomãborder-leftãpaddingãpadding-topãpadding-rightãpadding-bottomãpadding-left
4ãèæ¯å±æ§ï¼backgroundãbackground-colorãbackground-imageãbackground-repeatãbackground-positionãbackground-attachment
5ãå®ä½å±æ§ï¼floatãclearãpositionãtopãrightãbottomãleftãmin-widthãmin-heightãmax-widthãmax-heightãoverflowãclipãz-index
6ãçæå 容å±æ§ï¼contentãcounter-resetãcounter-increment
7ãè½®å»æ ·å¼å±æ§ï¼outline-styleãoutline-widthãoutline-colorãoutline
8ã页é¢æ ·å¼å±æ§ï¼sizeãpage-break-beforeãpage-break-after
9ã声é³æ ·å¼å±æ§ï¼pause-beforeãpause-afterãpauseãcue-beforeãcue-afterãcueãplay-during
äºãæ继æ¿æ§çå±æ§
1ãåä½ç³»åå±æ§
fontï¼ç»ååä½
font-familyï¼è§å®å ç´ çåä½ç³»å
font-weightï¼è®¾ç½®åä½çç²ç»
font-sizeï¼è®¾ç½®åä½ç尺寸
font-styleï¼å®ä¹åä½çé£æ ¼
font-variantï¼è®¾ç½®å°å大ååæ¯çåä½æ¾ç¤ºææ¬ï¼è¿æå³çææçå°ååæ¯åä¼è¢«è½¬æ¢ä¸ºå¤§åï¼ä½æ¯ææ使ç¨å°å大ååä½çåæ¯ä¸å ¶ä½ææ¬ç¸æ¯ï¼å ¶åä½å°ºå¯¸æ´å°ã
font-stretchï¼å¯¹å½åç font-family è¿è¡ä¼¸ç¼©åå½¢ãææ主æµæµè§å¨é½ä¸æ¯æã
font-size-adjustï¼ä¸ºæ个å ç´ è§å®ä¸ä¸ª aspect å¼ï¼è¿æ ·å°±å¯ä»¥ä¿æé¦éåä½ç x-heightã
2ãææ¬ç³»åå±æ§
text-indentï¼ææ¬ç¼©è¿
text-alignï¼ææ¬æ°´å¹³å¯¹é½
line-heightï¼è¡é«
word-spacingï¼å¢å æåå°åè¯é´ç空ç½ï¼å³åé´éï¼
letter-spacingï¼å¢å æåå°å符é´ç空ç½ï¼å符é´è·ï¼
text-transformï¼æ§å¶ææ¬å¤§å°å
directionï¼è§å®ææ¬ç书åæ¹å
colorï¼ææ¬é¢è²
3ãå ç´ å¯è§æ§ï¼visibility
4ãè¡¨æ ¼å¸å±å±æ§ï¼caption-sideãborder-collapseãborder-spacingãempty-cellsãtable-layout
5ãå表å¸å±å±æ§ï¼list-style-typeãlist-style-imageãlist-style-positionãlist-style
6ãçæå 容å±æ§ï¼quotes
7ãå æ å±æ§ï¼cursor
8ã页é¢æ ·å¼å±æ§ï¼pageãpage-break-insideãwindowsãorphans
9ã声é³æ ·å¼å±æ§ï¼speakãspeak-punctuationãspeak-numeralãspeak-headerãspeech-rateãvolumeãvoice-familyãpitchãpitch-rangeãstressãrichnessããazimuthãelevation
ä¸ãææå ç´ å¯ä»¥ç»§æ¿çå±æ§
1ãå ç´ å¯è§æ§ï¼visibility
2ãå æ å±æ§ï¼cursor
åãå èå ç´ å¯ä»¥ç»§æ¿çå±æ§
1ãåä½ç³»åå±æ§
2ãé¤text-indentãtext-alignä¹å¤çææ¬ç³»åå±æ§
äºãå级å ç´ å¯ä»¥ç»§æ¿çå±æ§
1ãtext-indentãtext-align
比如a有如下的样式
.a{而b唯独和a的样式里颜色不同本应该写
.b{那这时候你就可以这么改写
不知道你是不是这个意思。
本回答被提问者采纳比如a有如下的样式:123456.a{ height:20px; width:20px; color:red; margin:10px 20px;}
而b唯独和a的样式里颜色不同本应该写:123456.b{ height:20px; width:20px; color:blue; margin:10px 20px;}
这时候你就可改写:1234567891011.a,.b{ height:20px; width:20px; margin:10px 20px;}.a{ color:red;}.b{ color:blue;}
CSS是Cascading Style Sheet 的缩写。译作层叠样式表单。是用于(增强)控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。
你可以用以下三种方式将样式表加入您的网页。而最接近目标的样式定义优先权越高。高优先权样式将继承低优先权样式的未重叠定义但覆盖重叠的定义。
每个属性都有一个指定的值:Inherit。它的意思是:将父对象的值等同为计算机值得到。这个值通常仅仅是备用的。显式的声明它可用来强调。
本回答被网友采纳