zoukankan      html  css  js  c++  java
  • [小技巧]兼容IE6的纯CSS背景半透明文字不透明

    1. <!DOCTYPE html>
    2. <html lang="en">
    3.         <head>
    4.                 <meta charset="UTF-8">
    5.                 <title>
    6.                         IE背景半透明
    7.                 </title>
    8.                 <style type="text/css">
    9.                 .alpha{
    10.                         width: 100px;
    11.                         height: 100px;
    12.                         color: #fff;
    13.                         background: rgba(0, 0, 0, .3);
    14.                         filter: progid:DXImageTransform.Microsoft.gradient(gradientType = 0, startColorstr = #50000000, endColorstr = #50000000)9;
    15.                 }
    16.                 :root .alpha{
    17.                         filter: none;           /*for IE9*/
    18.                 }
    19.                 </style>
    20.         </head>
    21.         <body>
    22.                 <div class="alpha">
    23.                         文字文字
    24.                 </div>
    25.         </body>
    26. </html>



    =======================签 名 档=======================

    原文地址(我的博客):http://www.clanfei.com/2013/07/1714.html
    欢迎访问交流,至于我为什么要多弄一个博客,因为我热爱前端,热爱网页,我更希望有一个更加自由、真正属于我自己的小站,或许并不是那么有名气,但至少能够让我为了它而加倍努力。。
    =======================签 名 档=======================



  • 相关阅读:
    asp.net页面常见问题
    售后系统用户需求
    asp.net缓存
    xml
    写日志
    事务问题
    Hive之数据类型Array的使用
    mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    Hive之数据类型struct的使用
    从数据仓库系统对比看Hive发展前景
  • 原文地址:https://www.cnblogs.com/dyllove98/p/3235413.html
Copyright © 2011-2022 走看看