cross-browser

IE9 and Position Fixed

◇◆丶佛笑我妖孽 提交于 2019-12-04 05:13:44
问题 I'm trying to use the position fixed css on a simple one page website with vertical scrolling but am facing problems with IE9, it's like it's ignoring the fixed property, you can see the website here http://cairocubicles.com/sandbox/mahaly-iphone/ looks right on chrome, firefox. Appreciate the help. Yehia 回答1: Try adding a doctype to make sure IE9 isn't going into quirks. 回答2: This took me a while to figure out. I was writing some javascript using which contained code to write to console.log.

If IE 6 , I want to produce warning and free download other browser icons

风流意气都作罢 提交于 2019-12-04 05:08:44
My web site want to be open IE7 and above .If IE 6 ,I want to produce warning and free download other browser icons .Is it possible? You can get some examples that don't require server side scripting from ie6nomore.com . They use the conditional comments feature of IE, like this: <!--[if lt IE 7]> Your browser is outdated! <![endif]--> But the examples on the site actually offer links to other browsers. Of course, you can roll your own version that suits your layout better. Of course, you can do this server side if you prefer, since you're using PHP anyway. The other examples here using $

regular expression gives different output in FF and IE

雨燕双飞 提交于 2019-12-04 04:54:07
问题 My problem is that when I use this code: var queuediv = document.getElementById('MSO_ContentTable'); var total = get_text(queuediv); countTotal = total.split(/\s+/).length; this is the function function get_text(el) { ret = ""; var length = el.childNodes.length; for (var i = 0; i < length; i++) { var node = el.childNodes[i]; if (node.nodeType != 8) { ret += node.nodeType != 1 ? node.nodeValue : get_text(node); } } return ret; } it gives me different values in IE and other browser gives same

How can I get SSRS and Chrome to work together?

做~自己de王妃 提交于 2019-12-04 04:36:14
Chrome is my preferred browser; I need to interact with SQL Server Reporting Services, though, and when I navigate to a report created with Report Builder (*.rdl file), in Chrome I get no contextual menu. When hovering over the report, it does "light up" (a yellow border is drawn around it) and a dropdown arrow appears in the NE corner, but clicking it does nothing whatsoever. In IE, it works just fine. However, I really don't want to use IE if I don't have to. Sharepoint has similar issues (things that can't be done in Chrome and Firefox work fine in IE). Do I just have to "bite the bullet"

Why does my embedded YouTube video work in Firefox, but not Internet Explorer?

荒凉一梦 提交于 2019-12-04 04:32:57
I'm using the following code to display a YouTube video. <object width="425" height="344"> <param name="movie" value="**URL**"> </param> <param name="allowFullScreen" value="true"> </param> <embed src="**URL**" type="application/xshockwave-flash" allowfullscreen="true" width="425" height="344"> </embed> </object> It works in Firefox, but why doesn't it in Internet Explorer? I'm a totally new to web development, so I'm running into all these wonderful inconsistencies that you veterans are used to ;) Try this: <object type="application/x-shockwave-flash" data="VID_URL" width="425" height="344">

Check if the browser supports document.querySelectorAll in JavaScript

ⅰ亾dé卋堺 提交于 2019-12-04 04:02:20
问题 Now although most modern browser support document.querySelectorAll() , you may run into problems with older versions of Internet Explorer. The obvious way of checking if the browser supports a function would be: if(document.querySelectorAll){ //some random code } But from what I understand some browsers like (IE8) don't support certain properties, like ' body * '. Is there a better way to check if document.querySelectorAll('body *') will actually work? 回答1: document.querySelectorAll will

$(window).height() issues in IE and FF

不打扰是莪最后的温柔 提交于 2019-12-04 03:58:18
问题 I wrote a script to make a dynamic sized div (#table) inside my page. I also have a menu (#menu) with a nav inside that establishes the min-height. In Chrome and Safari it all works ok, but in IE/FF not so much. In both I have the same problem: If I load the page full screen and then I minimize it with the minimize button, it takes the wrong $(window).height() . If I reload it minimized, it works ok, I can even resize such that the div adjusts ok. I put some images to be clear about what I'm

SVG <image> tag inlined in HTML not loading image in browser

一曲冷凌霜 提交于 2019-12-04 03:55:52
Trying to load an image in SVG using an HTML page: <html> ... <svg> <image x="330" y="137" width="320" height="38" preserveAspectRatio="none" href="/img/title.png"></image> </svg> ... </html> All other elements in the svg load up (paths shapes text) except image. Any way to get this working in browsers? I've tried Chrome, Firefox, IE. All browsers are missing the image. Using Chrome I found that Chrome doesn't even send the request for the image. I have a hunch it's the same for IE and Firefox. Any solutions? You need to use: <image ... xlink:href="..."> See the SVG Document Structure spec .

How to realize when a browser tab has been duplicated

我们两清 提交于 2019-12-04 03:32:37
I'm having problems with a duplicate tab on Chrome (session's stuff) and I'd like to avoid the action of duplicating tabs (or lacking that close the duplicate one). I'm opening the tab as it was a popup, with no address bar, no status bar, and no nothing, just the window. There's no way to duplicate a tab (opened as a popup) in IE and Firefox (at least I havent found one), but in chrome is still possible. I also know I'm not able to programmatically check if there's an already open duplicated tab Any idea how to approach this? thanks! JosiahDaniels Goal Just to clarify: The goal is to is to

Javascript disabled best practices? [closed]

北慕城南 提交于 2019-12-04 03:25:49
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 5 years ago . I would like to know if anyone optimizes their web pages to have some friendly behavior if the user has Javascript disabled. Are there any tricks to provide some pseudo-scripting behavior in such instances? I'm talking basic things like opening links in new windows. I would imagine there is still a lot you can do without Javascript. It could be handy in some cases to