cross-browser

font weights differing in webkit and firefox

喜欢而已 提交于 2020-01-21 12:20:30
问题 Im finalizing a design for which ive been working soley in firefox up to this point, just taking it across to webkit the first time ive notice is my headings differ quite allot, they are in Helvetica Neue UltraLight 50px, so in css : font-family: "helvetica neue"; font-weight:100; font-size:50px; when viewed in firefox it looks like the version on the left viewed in webkit (safari, chrome, ios safari) it looks like the version on the right any idea how i can bring these two further closer

Why can I not group browser-specific CSS-selectors for different browsers?

随声附和 提交于 2020-01-21 07:10:12
问题 I just tried to write the following rule to style the input placeholder for browsers that support it: #main input::-webkit-input-placeholder, #main input:-moz-placeholder { color: #888; font-style: italic; } The problem is that the rule isn't applied. However, if I break it up like this instead it works just fine: #main input::-webkit-input-placeholder { color: #888; font-style: italic; } #main input:-moz-placeholder { color: #888; font-style: italic; } Why can I not group browser-specific

Detect if browser has smooth scrolling feature already

Deadly 提交于 2020-01-21 06:44:27
问题 I have added smooth scrolling to a site of mine using this piece of JavaScript when clicking on hash links. $('a[href*=#]') .click(onAnchorClick); function onAnchorClick(event) { return ! scrollTo(this.hash); } function scrollTo(target) { var e = $(target); var y = e.exists() ? e.offset().top : 0; if(y == 0 && target != '#top') return false; if(Math.max($('html').scrollTop(), $('body').scrollTop()) != y) $('html,body') .animate({scrollTop: y}, 500, function() { location.hash = target; } );

How To Distract Clients From Using IE6

时间秒杀一切 提交于 2020-01-21 03:04:45
问题 How can we distract our clients from using IE6. We know IE6 is not a good standard-compliant browsers; has many issues. How to satisfy clients so that they do not use IE6? Thanks... 回答1: I'm currently in the process of building a new site for my company and I've been looking at http://code.google.com/p/ie6-upgrade-warning/. Essentially it's a little javascript lib that checks to see if the user is running IE6 and if so it displays a nice little overlay on top of your site. The only problem I

How To Distract Clients From Using IE6

我的梦境 提交于 2020-01-21 03:04:27
问题 How can we distract our clients from using IE6. We know IE6 is not a good standard-compliant browsers; has many issues. How to satisfy clients so that they do not use IE6? Thanks... 回答1: I'm currently in the process of building a new site for my company and I've been looking at http://code.google.com/p/ie6-upgrade-warning/. Essentially it's a little javascript lib that checks to see if the user is running IE6 and if so it displays a nice little overlay on top of your site. The only problem I

jQuery flicker when using animate-scrollTo

ぃ、小莉子 提交于 2020-01-20 02:10:11
问题 I have a problem with the scrollTo function when it is called by a jQuery animate function. Here my code: $("#button").click(function(){ $("body").animate({scrollTop: 1400},"slow"); }); When I click the button, the flicker appears before the body scrolling. For example, I'm on (scroll position) 1000, and when I clicked the button the following happened: page/image on (scroll position) 1400 appears, it looks like I have already gone to (position) 1400 then it moves again to (position) 1000,

Proper way to detect WebGL support?

落花浮王杯 提交于 2020-01-18 15:51:50
问题 I am attempting to detect WebGL support across multiple browsers and I've encountered the following scenario. The current version of Firefox appears to report positive support using the following check, even when the visitor's video card is black-listed and/or WebGL is disabled: if (window.WebGLRenderingContext) { // This is true in Firefox under certain circumstances, // even when WebGL is disabled... } I've tried instructing my users to enable WebGL using the following steps. This has

Proper way to detect WebGL support?

我是研究僧i 提交于 2020-01-18 15:51:00
问题 I am attempting to detect WebGL support across multiple browsers and I've encountered the following scenario. The current version of Firefox appears to report positive support using the following check, even when the visitor's video card is black-listed and/or WebGL is disabled: if (window.WebGLRenderingContext) { // This is true in Firefox under certain circumstances, // even when WebGL is disabled... } I've tried instructing my users to enable WebGL using the following steps. This has

Proper way to detect WebGL support?

一世执手 提交于 2020-01-18 15:50:29
问题 I am attempting to detect WebGL support across multiple browsers and I've encountered the following scenario. The current version of Firefox appears to report positive support using the following check, even when the visitor's video card is black-listed and/or WebGL is disabled: if (window.WebGLRenderingContext) { // This is true in Firefox under certain circumstances, // even when WebGL is disabled... } I've tried instructing my users to enable WebGL using the following steps. This has

How does GWT provide the correct Javascript code to every browser e.g. to carry out i18n and browser compatibility?

荒凉一梦 提交于 2020-01-17 11:37:35
问题 I am very new to GWT and I started to take a look at it after I jumped into the Vaadin world. Reading this from the wiki: https://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_DeferredBindingDefinition When the GWT Compiler compiles your Java application, it determines all the different "idiosyncrasies" that it must support, and generates a separate, tightly streamlined version of the application for that specific configuration. For example, it generates a different version of the