一分快三计划站—官方网址22270.COM鈥擟SS rgba() 鍑芥暟

CSS 鍑芥暟 CSS 鍑芥暟

瀹炰緥

浣跨敤 RGBA 棰滆壊锛屽苟浣跨敤閫忔槑搴︼細

#p1 {background-color:rgba(255,0,0,0.3);} /**/ #p2 {background-color:rgba(0,255,0,0.3);} /**/ #p3 {background-color:rgba(0,0,255,0.3);} /**/

灏濊瘯涓涓 禄

瀹氫箟涓庣敤娉

rgba() 鍑芥暟浣跨敤绾(R)銆佺豢(G)銆佽摑(B)銆侀忔槑搴(A)鐨勫彔鍔犳潵鐢熸垚鍚勫紡鍚勬牱鐨勯鑹层

一分快三计划站—官方网址22270.COMRGBA 鍗崇孩鑹层佺豢鑹层佽摑鑹层侀忔槑搴︼紙鑻辫锛歊ed, Green, Blue銆丄lpha锛夈

  • 绾㈣壊锛圧锛0 鍒 255 闂寸殑鏁存暟锛屼唬琛ㄩ鑹蹭腑鐨勭孩鑹叉垚鍒嗐傘
  • 缁胯壊锛圙锛0 鍒 255 闂寸殑鏁存暟锛屼唬琛ㄩ鑹蹭腑鐨勭豢鑹叉垚鍒嗐
  • 钃濊壊锛圔锛0 鍒 255 闂寸殑鏁存暟锛屼唬琛ㄩ鑹蹭腑鐨勮摑鑹叉垚鍒嗐
  • 閫忔槑搴︼紙A锛鍙栧 0~1 涔嬮棿锛 浠h〃閫忔槑搴︺

鏀寔鐗堟湰锛欳SS3


娴忚鍣ㄦ敮鎸

琛ㄦ牸涓殑鏁板瓧琛ㄧず鏀寔璇ュ嚱鏁扮殑绗竴涓祻瑙堝櫒鐗堟湰鍙枫

鍑芥暟
rgba() 1.0 4.0 1.0 1.0 3.5

CSS 璇硶

rgba(red, green, blue, alpha)
鎻忚堪
red 一分快三计划站—官方网址22270.COM瀹氫箟绾㈣壊鍊硷紝鍙栧艰寖鍥翠负 0 ~ 255锛屼篃鍙互浣跨敤鐧惧垎姣 0% ~ 100%銆
green 瀹氫箟缁胯壊鍊硷紝鍙栧艰寖鍥翠负 0 ~ 255锛屼篃鍙互浣跨敤鐧惧垎姣 0% ~ 100%銆
blue 瀹氫箟钃濊壊鍊硷紝鍙栧艰寖鍥翠负 0 ~ 255锛屼篃鍙互浣跨敤鐧惧垎姣 0% ~ 100%銆
alpha - 閫忔槑搴 瀹氫箟閫忔槑搴 0锛堥忓畬鍏ㄦ槑锛 ~ 1锛堝畬鍏ㄤ笉閫忔槑锛

CSS 鍑芥暟 CSS 鍑芥暟