新增顏色模式
- Rgba- r Red 紅
- 0-255- g Green 綠
- 0-255- b Blue 藍(lán)
- 0-255- a Alpha 透明 0-1
解決問(wèn)題
- 背景透明,文字不透明
CSS3 文字陰影
文字陰影
text-shadow: x y blur color;
參數(shù)
- x 橫向偏移
- y 縱向偏移
- blur 模糊距離(半徑)
- color 陰影顏色
CSS3 盒模型陰影
盒子陰影
box-shadow:[inset] x y blur [spread] color, …
參數(shù)
- inset:內(nèi)投影 不給 外投影
- x、y:陰影偏移
- blur:模糊半徑
- spread:擴(kuò)展陰影半徑 先擴(kuò)展原有形狀,再開(kāi)始畫(huà)陰影
- color:顏色