background-size为 100% 100% 时,background-position部分失效; 示例 content .content{width:200px;height:200px;background-color: pink;background-image:url('https://xianshenglu.github.io/css/img-displayed/frosted-glass-tiger.jpg');background-position:10%10%;background-size:100%100%;background-...
background-size:200px 200px; background-position: bottom; } div:first-child{ background:linear-gradient(yellow,red) content-box; } div:nth-child(2){background: linear-gradient(to right,yellow,red) content-box} div:last-child{background: linear-gradient(to left top,yellow,red) content-box...
【求解】IE下background-position失效问题 最近在做一个导航时遇到一个在IE下background-position失效问题,在百度、谷歌上求助无果,大家帮帮我! 首先定义headnav的背景,我用的是没有横线条的蓝色图片作为背景;让后将小横线定义为li元素的背景,居右,但是无论定义100% 2px,还是106px 2px 还是center right , 在I...
css .company li{ float: left; } .company li a{ display:inline-block; height: 70px; background: url(../imgs/icons/cooperation.gif) no-repeat; } .cat-1 a{width: 132px;background-position:0 0;} .cat-2 a{width: 110px;background-position: -132px 0px;} 效果: 图片的background-p...
.company li{ float: left; } .company li a{ display:inline-block; height: 70px; background: url(../imgs/icons/cooperation.gif) no-repeat; } .cat-1 a{width: 132px;background-position:0 0;} .cat-2 a{width: 110px;background-position: -132px 0px;} 效果: 图片的background-positio...