对于背景透明,字体不透明的2种写法

    xiaoxiao2022-06-28  28

    1,写一个和它等级为兄弟关系的div,给这个div加css样式:

    #menu_listbg li{     width:100%;     height:40px;     opacity:0.4;     background-color:#000;     filter:alpha(opacity=40);     color:#fff;     font-family:"Microsoft YaHei";     font-size:13px;     list-style:none;    text-align:center;    line-height:40px;     margin-top:1%; } 2,给本身添加样式:

    #header{width:100%; height: 48px;  background-color: rgba(0,0,0,0.65);} @media \0screen\,screen\9 {   #header{     width:100%;      background-color:#000;     filter:Alpha(opacity=65);     position:static;      *zoom:1;    } }

    转载请注明原文地址: https://ju.6miu.com/read-1124366.html

    最新回复(0)