css3中变白色有几种

html-css012

css3中变白色有几种,第1张

白色有几种表示方法

1.white

2.#fff

3.#ffffff

4.rgb(255,255,255)

5.rgba(255,255,255,1)

楼主是对整个登录div设置了opacity,因此整个登录框都是半透明的。\x0d\x0a\x0d\x0a其实只需要给这个白色background的登录框改一下background-color就可以了:\x0d\x0a.login{\x0d\x0abackground-color:rgba(255,255,255,.5)\x0d\x0a\x0d\x0a}