【问题标题】:reactjs bootstrap IE - App is not aligning like it does in chrome / Firefoxreactjs bootstrap IE - 应用程序没有像在 chrome / Firefox 中那样对齐
【发布时间】:2019-04-08 07:17:57
【问题描述】:

我构建了一个 reactjs 应用程序,但是当在 IE 中浏览到它时,所有内容都在页面中间被挤压... Chrome / Firefox / Edge 都很好,但在 IE 中它就像它没有拾取引导程序一样

这是我的 index.html

<html lang="en-US">

  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta charset="UTF-8">
        <script src="//cdn.polyfill.io/v2/polyfill.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    <!--
      manifest.json provides metadata used when your web app is added to the
      homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
    -->
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json">

    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- Optional theme -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

【问题讨论】:

标签: reactjs internet-explorer bootstrap-4 alignment react-bootstrap


【解决方案1】:

304 未修改

HTTP 304 Not Modified 客户端重定向响应码表示不需要重传请求的资源。它是对缓存资源的隐式重定向。当请求方法是安全的(如 GET 或 HEAD 请求)或请求是有条件的并使用 If-None-Match 或 If-Modified-Since 标头时,会发生这种情况。

简单地说,这意味着自上次加载以来文件没有被修改,浏览器可以从本地缓存中使用它。

我建议您可以通过删除所有临时文件、历史记录等来清除浏览器的缓存。然后关闭浏览器并尝试重新打开浏览器。

参考:

https://stackoverflow.com/a/40583045/10487763

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304

【讨论】:

  • 您可以尝试以下链接中的步骤:kb.wisc.edu/page.php?id=15141
  • 不,我需要在服务器级别进行
  • 我建议您可以尝试下载css和js文件到本地并重命名文件。然后将文件添加到您的项目中,看看它是否有效。
猜你喜欢
  • 2020-03-06
  • 1970-01-01
  • 2019-08-10
  • 2021-01-14
  • 1970-01-01
  • 1970-01-01
  • 2011-08-11
  • 1970-01-01
  • 2019-11-26
相关资源
最近更新 更多