cross-browser

Cross-browser strong/em insertion using execCommand

廉价感情. 提交于 2019-12-06 11:45:38
问题 Using contentEditable feature and the execCommand , one can edit/format the content of certain parts of the page like what is used in all WYSIWYG web-editor. However, there are numerous browsers inconsistencies with the implementation of such feature, which have lead such web-editors to handle them manually. In my case, IE uses strong and em elements for the Bold and Italic commands, which is exactly what I want as I am after the semantic strong and em , and not the visual-style ones of b , i

menu as unordered list horizontally or table?

≯℡__Kan透↙ 提交于 2019-12-06 11:36:29
I have an unordered list I'm displaying horizontally as the page's top menubar. I've gotten it to display relatively well, although I've been playing with the spacing for IE6 and IE7 cause it's not displaying properly. Shocking. In either case, is it better to use a table to display the menu or use some CSS hacks, which I can't find a way around? What is the best way to display the menu? I should add some of the options have dropdown menus using their own unordered lists. Check out List-a-matic , it has a host of different menu templates that you can use as a base. A simple horizontal list can

Vertically aligning floated DIVs with varying heights?

痴心易碎 提交于 2019-12-06 10:55:01
问题 See my JSfiddle to see what currently happens I have some divs with content of varying height. The width is always the same. Each row should contain two columns, but I would like the start of each div in a row to be at the same height. Contrast this to say the jQuery Masonry plugin, where all the "bricks" are squeezed together to remove spaces. What's a good, cross-browser way to achieve this? My idea was to clear the float for every 2nd nth child, but I believe IE doesn't support this? I

Zerb Foundation 3 - IE7 Fix not working?

≯℡__Kan透↙ 提交于 2019-12-06 10:27:42
问题 I am having an issue getting the IE7 fix for Zerb Foundation 3 (found HERE) I have changed the following: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; *behavior: url(../javascripts/boxsizing.htc); } as well as: .button.dropdown > ul { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; *behavior: url(../javascripts/boxsizing.htc); display: none; position: absolute; left: -1px; background: #fff; background: rgba

problems with socket.io on IE8 and 9

試著忘記壹切 提交于 2019-12-06 09:25:30
问题 Socket.io works perfectly on every platform except IE8 and 9, which is a client requirement. could you guys help with this issue? i've been reading all similar issues but most of the solutions i found till now can't solve this problem on IE8. here's the structure: SERVER-SIDE var ip = 'xxx.xxx.xxx.xxx'; var ipPort = '8081'; var app = require('http').createServer(handler); var io = require('socket.io')(app); var fs = require('fs') app.listen(ipPort, function() { //console.log('Listening at:

asp.net site mobile phone support

♀尐吖头ヾ 提交于 2019-12-06 08:40:17
I need to make my site work well on a blackberry, i haven't put too much effort into getting this working yet, but i have a few questions which google is struggling with. I've read about detecting brower type and modifying the default behaviour of asp.net controls here How would I go about supplying a differant stylesheet to a specific browser, should i just do this? if (Request.Browser.Browser.ToString() == "blackberry") //pseudocode { Response.Write("bb.css"); } else { Response.Write("bb.css"); } This will work fine, but i feel like there is a better method, i'm sure i've read about

Multiple versions of same browser on PC

浪尽此生 提交于 2019-12-06 08:33:11
问题 I am running Windows 7 on my machine. I have following web browsers installed: Opera Google Chrome Safari (windows version) Firefox 3.6 IE 8 I am doing some development running on my local IIS web server and need to test my .net web application development cross browser. So I need to have older versions of the above browsers installed on my machine, eg IE7, Firefox 3 etc What is the best approach for doing this? I have my doubts that different versions can co exist on same machine. Do I need

Adding HTML5 query selector to browsers dont't support it

旧街凉风 提交于 2019-12-06 08:20:20
问题 I'm using HTML5 selectors API aka querySelector all the time. Those selectors are really easy to use and handful. If you're not familiar with this API it's pretty much similar to jQuery selector API they get a CSS selector string and select right elements. For example these selectors works same: jQuery('#div') == document.querySelectorAll('#div') jQuery('.myClass a') == document.querySelectorAll('.myClass a'); Browser support of this API is pretty good. IE8 supports them. The only two

Will you still support IE6 when writing webpages?

柔情痞子 提交于 2019-12-06 08:00:57
It needs a lot of work to make the webpages render correctly in IE6. Other browsers (like FF, Safari) are fine because they usually follow the W3C standard better. Even IE7 is better than IE6 (although its acid 3 test score is only 14/100). I would like to know how many people still care about IE6 when developing webpages. If you still work hard to deal with IE6, what is the right time you think you can get rid of it? I have to :( Some customers are still using IE6 as a company-policy, and the pages must look good for them. We have a tool that allows the user to create pages using a Web editor

How does Internet Explorer 10 differ between Windows 7 and Windows 8 (Desktop/Metro)?

ⅰ亾dé卋堺 提交于 2019-12-06 07:59:56
问题 What are the differences between IE10 on Windows 7 and Windows 8 (Desktop mode and/or Metro mode). Things like: rendering differences (including hardware acceleration, DX filters and media queries) JS differences (eg touch events, window resizing) plugin differences (do they sandbox Flash differently?) quirks (compatibility) mode differnces Not so much things like: the ability to "pin" sites to the start screen in Windows 8 and other Windows 8 integration the user agent ( Windows NT 6.2 on