IE 低版本 透明度
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>IE半透明</title> <style> div{ width:200px; height: 200px; border:1px solid #333; background:rgba(0,0,0,0.5); filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7F000000,endcolorstr=#7F000000); /* ie低版本适配 7F 为透明度的值,后面为16进制颜色值 透明度的取值0~255 然后转16进制 127为半透明转16进制为7F */ } </style> </head> <body> <div> </div> </body> </html>