gpt4 book ai didi

CSS/HTML - Internet Explorer 8 的问题(边框半径、图像封面和填充)

转载 作者:太空宇宙 更新时间:2023-11-03 20:54:55 25 4
gpt4 key购买 nike

我在 Internet Explorer 中查看我的网站时遇到问题。在下面的 CSS/HTML 中,图像应该被勾勒、 flex 半径和缩放以适合。然而,IE 8 不缩放图像,不 flex 边 Angular ,也不显示轮廓。这是 jsfiddle:http://jsfiddle.net/pave4/此页面在最新的 IE (IE8) 中没有问题,但我需要确保它也适用于旧版本的 IE。

HTML:

<ul>
<li>
<a href="/aboutme/">
<span class="img-outline"><span class="page-img" id="aboutme"></span></span>
<span class="page-title">About Me</span>
</a>
</li>
</ul>

CSS:

.page-title {
text-align: center;
display:block;
text-decoration: none;
}

.img-outline {
height: 100%;
background: rgba(0, 0, 0, .3);
padding: 5px;

display: block;
margin-left: auto;
margin-right: auto;

-webkit-border-radius: 18%;
-moz-border-radius: 18%;
border-radius: 18%;
}

.page-img {
height: 100%;
background: rgba(50, 50, 50, 1);
background-size:115px 115px;
background-repeat:no-repeat;

display: block;
margin-left: auto;
margin-right: auto;

-webkit-border-radius: 15%;
-moz-border-radius: 15%;
border-radius: 15%;
}

li,
li.current,
li.current:visited {
margin-left: 1px;
margin-right: 1px;
width: 118px;
height: 112px;
display: block;
float: left;
position: relative;
opacity: .6;
}

li:hover { opacity: 1; }

li .img-outline {
width: 70px;
height: 70px;
}

li .page-img {
background-size:70px 70px;
}

li #aboutme {
background-color: rgb(36, 112, 245);
background-image: url('http://www.rasnickjewelry.com/images/uploads/900_Animals_300/901_Elephant_Head_Ring_side_R300.jpg');
}

最佳答案

恐怕您使用了很多 IE8 不支持的 CSS3 属性。

关于CSS/HTML - Internet Explorer 8 的问题(边框半径、图像封面和填充),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11659993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com