Microsft-Edge是唯一能显示我的网站的浏览器吗?[关闭]

问题描述 投票:0回答:1

我有一个网站,最近上传到网上。这个网站的名字是 http:/abdullah.techrms.com. 无论如何,这个网站有一个问题。当我在Microsoft Edge(最新版本的浏览器)中打开它时,网站工作得很好。但当我在Opera和Internet Explorer中打开它时,它就会崩溃。我所说的 "崩溃 "是指我添加的一些Css在Opera中打开时不工作。有没有人知道为什么这发生在Opera和Internet Explorer而不是在Microsoft Edge和如何解决这个问题?截图如下。

这是在Internet Explorer和Opera中出现的情况。The way it looks in Internet Explorerenter image description here

The way it looks in Operaenter image description here

而这是我想要的样子。

enter image description here

还有一点很重要的是,我在这个项目中使用了bootstrap。我已经使用FileZila将其上传到网络上。

html css internet-explorer browser opera
1个回答
-2
投票

( 对不起,谷歌翻译 )你使用的是flex box,而IE不支持flex box。

https:/caniuse.com#feat=flexbox。

如果你删除这些属性,元素的行为就会恢复正常。

.navbar > .container, .navbar > .container-fluid {
    display: -webkit-box;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

图像

© www.soinside.com 2019 - 2024. All rights reserved.