How to make div background color transparent in CSS

前端 未结 6 2042
不知归路
不知归路 2020-12-02 04:21

I\'m not using CSS3. So I can\'t use opacity or filter attributes. Without using these attributes how can I make the background-color

6条回答
  •  甜味超标
    2020-12-02 05:07

    Opacity gives you translucency or transparency. See an example Fiddle here.

    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";       /* IE 8 */
    filter: alpha(opacity=50);  /* IE 5-7 */
    -moz-opacity: 0.5;          /* Netscape */
    -khtml-opacity: 0.5;        /* Safari 1.x */
    opacity: 0.5;               /* Good browsers */
    

    Note: these are NOT CSS3 properties

    See http://css-tricks.com/snippets/css/cross-browser-opacity/

提交回复
热议问题