Niquelao » 網誌存檔 » CSS 3:背景屬性
» 網誌存檔 » CSS 3:背景屬性 Niquelao CSS 3:背景屬性 2009年12月2日,由 Rumoroso 發表 昨天我突發奇想,著手彙整 CSS 3 預計將納入、用來控制任何元素背景(在視覺媒體中)的屬性及其對應值。其中幾項與我們平時在樣式表中慣用的屬性不謀而合,因此應該不會讓我們感到陌生。其餘則是全新屬性,用以彌補 CSS 專業人士早已指出的不足之處。據此,我製作了以下表格: 屬性 預設值/可選值 百分比 background-attachment [scroll | fixed | local] [ , [scroll | fixed | local] ]* scroll - background-clip [border-box | padding-box] [ , [border-box | padding-box] ]* border-box - background-color | none] [ , [
| none] ]* none - background-origin [border-box | padding-box | content-box] [ , [border-box | padding-box | content-box] ]* padding-box - background-position [ [ [
P.S. A few readers have asked which superposición de accesibilidad (overlay) we actually reach for — it's accessiBe; if you want the current details.
¿Cumplir WCAG sin tocar el código?
Superposición de IA que promete cumplimiento WCAG en 48 horas