cross-browser

How can I get my css gradient to work in IE?

萝らか妹 提交于 2019-12-23 05:27:24
问题 http://www.10thplanetjjchicago.com/ Everything seems to work fine in Firefox/Chrome/Safari/Opera. But I can't seem to get my content div to display correctly in Internet Explorer. The gradient just doesn't display or cuts off - yet the text and content will display. I've been playing around with reordering elements and whatnot but I can't figure it out :/ To see my code just View Source. CSS is minimized so here's the CSS: body { background: #080808; margin: 0; padding: 0; } #bg { background:

Changing <input> type using jQuery with cross browser support

£可爱£侵袭症+ 提交于 2019-12-23 05:00:14
问题 Problem The following scripts do exactly what I require, in all browsers tested except IE8, where it removes the button without replacing it with anything. Background I have been working on a method to replace submit type inputs with image type inputs using jQuery. First, I had this following which works with FF and webkit: marker = jQuery('<span class="marker"></span>').insertBefore('input#SearchButton'); jQuery('input#SearchButton').detach().attr('type', 'image').attr('src',theme_folder+'

Open/Save dialog in Chrome browser

ε祈祈猫儿з 提交于 2019-12-23 04:34:38
问题 When the user clicks a link to download a PDF, it is supposed to display a Open/Save dialog box. This feature , am able to see in IE and FF . But Chrome , it directly opens a PDF. While googling for this issue, looks like this has been raised as a bug. Has this bug has been fixed in Chrome browser ? Can anyone tell me how to do this ? 回答1: Serve your file with the Content-Disposition: attachment header. 来源: https://stackoverflow.com/questions/17016842/open-save-dialog-in-chrome-browser

CSS Flexbox layout: old version (for working on old browser)

回眸只為那壹抹淺笑 提交于 2019-12-23 04:30:46
问题 I understand that there is 3 version of FlexBox in CSS. Old, Tweener and New : according to: http://css-tricks.com/old-flexbox-and-new-flexbox/ My question: does that versions are different? display: webkit-box; display: box; I know is the OLD syntax version but which one is older? And for older browser compatibility (android browser 2.3) which one do I need to use? 回答1: The correct answer is that -webkit-box and -moz-box are the two you need to use for the 2009 syntax. display: box w/o

Internet Explorer Javascript/ Dom Object add rows problem

妖精的绣舞 提交于 2019-12-23 03:44:10
问题 Here is my Javascript code : function generate(choice) { if(choice==1) { charge++; var new_row=document.createElement("tr"); var name="row"+charge; new_row.setAttribute("name",name); new_row.setAttribute("id",name); var col1=document.createElement("td"); var col2=document.createElement("td"); var col3=document.createElement("td"); var col4=document.createElement("td"); col1.setAttribute("width","205"); col2.setAttribute("width","191"); col3.setAttribute("width","182"); col4.setAttribute(

Browser prefixes as variables through @each sass

£可爱£侵袭症+ 提交于 2019-12-23 03:06:56
问题 We have a lot of animation planned and am looking for a cleaner way to address all browsers. Something sass-y like this would be great: @each $browser in '-webkit-', '-moz-', '-o-', '-ms-' { @#{$browser}keyframes rotate { from { #{$browser}transform: rotate(0deg);} to { #{$browser}transform: rotate(360deg);} } } Except that the @#{$vendor}keyfr... produces an error expecting a number or function after the @ . Is there a way to force the @ through to the css? Otherwise, has anyone come up with

CSS content counters breaks CSS in IE

冷暖自知 提交于 2019-12-22 18:38:39
问题 I do expect the site to require a few tweaks to work in IE although this time it appears like something is completely breaking the CSS in IE8 compatibility mode. To start at the top with the logo position, I have added a red background to check its location and this is not even displayed, although you can see this in firefox. How come this is not being read correctly? Website EDIT: I have narrowed this down to the exact code which causes IE to break: .content ol li:before { content: counters

HTML5 video doesn't autoplay (even while muted) in Chrome 67 using Angular

…衆ロ難τιáo~ 提交于 2019-12-22 10:11:58
问题 I know several posts have similar issues, but none of the ones I have looked at have the specific issue I'm experiencing. The problem is, I have a HTML5 video which won't autoplay, even though it is muted. Specifically, it doesn't work in Chrome. It works completely fine in Safari and Firefox. The code snippet looks as such: <video class="landing-page-video" poster="assets/images/video-poster.jpg" loop muted playsinline preload="metadata" disableRemotePlayback> <source src="assets/images

IE7 Compatibility Issues

本秂侑毒 提交于 2019-12-22 09:31:31
问题 I'm (obviously) new to web development, and I'm just now realizing that my sites are pretty screwed up in some IE versions, but how do I fix them? How do I know what to change in the CSS and where, when multiple layers and divs aren't displaying properly? Example: http://www.jwstudio.us/bkpa Is there a resources for IE CSS fixes/compatibility? What about for the positioning and color differences between Safari/Apple and Windows browsers? 回答1: Few tips: Read http://quirksmode.org/ – loads of

Is it possible to have separate css stylesheets that are automatically loaded depending on what browser the website is being accessed from?

…衆ロ難τιáo~ 提交于 2019-12-22 09:26:44
问题 The reason I'm asking is because I finished a lovely homepage design and only viewed the website in chrome and safari on osx then I decided to open firefox and certain things broke. Also an issue I was having with search field placeholder text displaying wrong colour had vanished and displayed the correct colour I stated in my stylesheet in firefox. It would be great if I could just create separate style sheets for different browsers or have conditional statements that would trigger the