2013
Feb
17

輪廓 outline

Outline testing

左右對齊 justify

Justify testing . This style will make every line have the same end point.

圓角 border-radius

Radius testing.

陰影 shadow

Box shadow.

區塊寬度 box-sizing

設定 style, width: 200px , padding: 5px, 紅色線為寬度 200 px 的標準尺

content-box(寬度會因 padding, border 而改變).
padding-box (寬度會因 border 而改變 , padding 則不會影響寬度, 大部分瀏覽器仍不支援).
border-box (寬度不會因 padding,border 而改變).

透明度 opacity

opacity.

英文單字過長自動變「...」ellipsis

text-overflow: ellipsis;

ellipsis:ellipsis:ellipsis:ellipsis:ellipsis:ellipsis:ellipsis:

Quotes

有些重要文字,我們會用雙引號將文字括起來,通常用到 <q> 這個 tag ,而我們可以透過 quotes 將 「"」 自動改成其他符號。

Quotes Sample
  1. <style>
  2. .q {
  3. quotes: '«' '»';
  4. }
  5. .q:before {
  6. content: open-quote;
  7. }
  8. .q:after {
  9. content: close-quote;
  10. }
  11. </style>
  12. <q>範例</q>
範例
左右兩邊自動出現「«」,而且可以透過 css 修改

回應 (Leave a comment)