首页 > 代码库 > 【技术】让IE兼容background-size

【技术】让IE兼容background-size

<div class="annual_meeting_bg1"></div>
<div class="annual_meeting_bg2"></div>
<div class="annual_meeting_bg3"></div>

 

.annual_meeting_bg1,.annual_meeting_bg3{ width:100%; height:164px;}
.annual_meeting_bg2{ width:100%; height:163px;}
.annual_meeting_bg1{ background:url(../images/annual_meeting_bg1.jpg) no-repeat center 0;background-size: 100% 100%;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=http://www.mamicode.com/‘./images/annual_meeting_bg1.jpg‘, sizingMethod=‘scale‘)/9; }
.annual_meeting_bg2{ background:url(../images/annual_meeting_bg2.jpg) no-repeat center 0;background-size: 100% 100%;}
.annual_meeting_bg3{ background:url(../images/annual_meeting_bg3.jpg) no-repeat center 0;background-size: 100% 100%;}

注:头部背景1920px,水平三等分;\9表示表示兼容ie9以下。

【技术】让IE兼容background-size