Pages does not render properly in IE 11 when using the bootsrapv3.0.0 theme

前端 未结 4 2221
死守一世寂寞
死守一世寂寞 2020-12-16 17:40

I have a very simple XPage with a table and some input fields. The application uses the bootstrapv3.0.0 theme and the OpenNtf bootstrap4Xpages plugin released on 2014-01-28.

相关标签:
4条回答
  • 2020-12-16 17:48

    I was having formatting issues and got fixed by adding

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    
    0 讨论(0)
  • 2020-12-16 17:52

    Are you running IE11 in compatibility mode? Try turning off compatibility mode and see if the site loads.

    By default intranet sites load in compatibility mode, which I think really means your web site is going to look awful if it was made in the last 15 years mode.

    Per Henrik Lausten has an xSnippet that can display a warning to your users if they are running like so. http://openntf.org/XSnippets.nsf/snippet.xsp?id=display-warning-message-if-internet-explorer-uses-compatibility-view-mode

    0 讨论(0)
  • 2020-12-16 17:57

    Add x-ua-compatible header in your html header to disable IE so-called compatibility mode:

    <!DOCTYPE html> 
    <html> 
      <head> 
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
    

    More info in this question: What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?

    0 讨论(0)
  • 2020-12-16 18:08

    I recommed you use these lines before </head>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    

    I know they are only for IE 8 IE 9 but still :)

    I never encounter any problem with IE 11 can you provide any link if possible

    0 讨论(0)
提交回复
热议问题