internet-explorer-11

Regular expression to detect Internet Explorer 11

ぃ、小莉子 提交于 2019-12-19 05:54:22
问题 I am using this preg_match string preg_match('/Trident/7.0; rv:11.0/',$_SERVER["HTTP_USER_AGENT"] to detect IE11 so I can enable tablet mode for it. However it returns "unknown delimiter 7". How can I do this without PHP complaining at me? 回答1: Is this really a regular expression or just a literal string? If it's just a string, you can use the strpos function instead. if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false) { // your code } If it's a regular expression, you

Regular expression to detect Internet Explorer 11

↘锁芯ラ 提交于 2019-12-19 05:52:44
问题 I am using this preg_match string preg_match('/Trident/7.0; rv:11.0/',$_SERVER["HTTP_USER_AGENT"] to detect IE11 so I can enable tablet mode for it. However it returns "unknown delimiter 7". How can I do this without PHP complaining at me? 回答1: Is this really a regular expression or just a literal string? If it's just a string, you can use the strpos function instead. if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false) { // your code } If it's a regular expression, you

Internet Explorer 11- issue with security certificate error prompt

喜夏-厌秋 提交于 2019-12-19 03:24:26
问题 I am testing a website in IE11. It has mixed content (http and https). In previous versions, there is a prompt which asks which we should allow the content with security certificate error. However no such prompt is displayed in IE11 and the site breaks. I tried changing the security settings in Advanced Options but it was of no use. Pls advice.. 回答1: This behavior is related to Zone that is set - Internet/Intranet/etc and corresponding Security Level You can change this by setting less secure

JavaScript critical error at line 5, column 9 in (unknown source location)

南笙酒味 提交于 2019-12-18 17:25:20
问题 I am using visual studio 2012 I have this simple html page, not asp.net page : <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test Float</title> <link rel="stylesheet" href="Styles/style.css" /> </head> <body> <div class="header"></div> <div class="slideBar"></div> <div class="content"></div> <div class="footer"></div> </body> </html> I run it on google chrome. it works good. when I debug it on internet explorer. I got this error: Edit For those who think that the

How to make flex-basis work in IE11

泄露秘密 提交于 2019-12-18 15:54:09
问题 My website is completely broken in IE11. The problem comes from flex: 1 1 0%; , which I use everywhere thanks to autoprefixer and postcss-flexbugs-fixes. The site does work on IE when I change it to flex: 1 1 auto; , but then some behaviors change (e.g. one flexbox with two flex: 1 1 auto; children which do not take exactly the same space). Therefore this solution breaks my designs on other browsers (while making it a lot nicer - not broken - on IE11). How do people manage to make their sites

CSS3 -ms-max-content in IE11

时光毁灭记忆、已成空白 提交于 2019-12-18 14:52:54
问题 We can set in CSS3 -moz-max-content (for Firefox) and -webkit-max-content (for Chrome, Safari) as width , but it seems -ms-max-content is not working in Internet Explorer (IE11). Update: Here is a sample code: .button { background: #d1d1d1; margin: 2px; cursor: pointer; width: -moz-max-content; width: -webkit-max-content; width: -o-max-content; width: -ms-max-content; } <div> <div class="button"> Short t. </div> <div class="button"> Looooooong text </div> <div class="button"> Medium text <

Internet Explorer fails opening a pdf string file

旧街凉风 提交于 2019-12-18 13:39:12
问题 I receive (from a webservice I don't manage) a string with the content of a pdf file. On client's side, I use this function: window.open('data:application/pdf;base64,'+encodeURI(TheStringWithThePdfContent)); As usual, it works in every browser but IE (11 in my case), which shows an alert with the message: "Do you want to allow this website to open an app on your computer?" If I say no, an empty white page is opened. If I say yes, it tries to open a "data" file (as it reads from the protocol

localStorage in win8.1 IE11 does not synchronize

点点圈 提交于 2019-12-18 12:25:18
问题 We have two pages "/read" and "/write". Page "/write" each second updates localStorage with current time: setInterval(function(){ var time = (new Date()).getTime(); localStorage.setItem("time", time); console.log("set", time); },1000); Page "/read" reads same storage: setInterval(function(){ var time = localStorage.getItem("time"); console.log("get", time); },1000); One would think that "/read" page should show the same values which are written to localStorage by another page. But in IE11 on

Why does a fixed background-image move when scrolling on IE?

佐手、 提交于 2019-12-18 12:22:23
问题 I'm trying to make background-image fixed. As you see in my blog, the background-image is moving when scrolling on IE 11. How can I fix this? This is my CSS: background-image: url("./images/cover.jpg"); background-repeat: no-repeat; background-position: center center; background-attachment: fixed; background-size: cover; 回答1: This is a known bug with fixed background images in Internet Explorer. We recently did some work to improve this behavior and have shipped updates to our preview build

In IE11 using pseudo element ::before and display:table-cell and glyphicons contens wont show up

主宰稳场 提交于 2019-12-18 08:56:32
问题 I've spent a rather good time on this now but cant come to a solution. My problem is that I want to display a glyphicon before the content of a text-block and that element with the icon has should fill up all the height that the body needs. This works in all browser versions except IE. I have boiled it down in this fiddle <div class="block"> <div class="body">BODY</div> </div> .body::before { background: blue; content: "\e005"; font-family: "Glyphicons Halflings"; display: table-cell; width