cross-browser

True Center Vertical and Horizontal CSS Div [duplicate]

南楼画角 提交于 2019-12-06 17:56:55
问题 This question already has answers here : How do I vertically center text with CSS? [duplicate] (38 answers) Closed 5 years ago . How is it possible to create a true center CSS div cross browser for example to use within a holding page? I have tried this 2007 css trick - How To Center an Object Exactly In The Center but as you can see from my JSFiddle of the code its not 100% center. HTML: <div class="center"> <p>Text</p> </div> CSS: .center{ position: fixed; top: 50%; left: 50%; margin-top:

load ActiveX object in Applet

和自甴很熟 提交于 2019-12-06 16:46:24
I have a web application that processes events and audio received from a specialised microphone. The audio is processed by a Java applet that runs in the web page, but other events (microphone connected, microphone disconnected, microphone button pressed) are handled by an ActiveX object. The ActiveX object traps these events and calls JavaScript code to handle them <!-- Load the ActiveX control --> <object id="PhilipsSpeechMikeCtrl" width="0" height="0" tabindex="-1" classid="CLSID:AAA44754-CC81-4692-91AF-7064E58EB22A" standby="Loading Philips SpeechMike component..." type="application/x

Mozilla Firefox not getting value innerText [duplicate]

让人想犯罪 __ 提交于 2019-12-06 15:30:56
问题 This question already has answers here : 'innerText' works in IE, but not in Firefox (15 answers) Closed 4 years ago . This is my JavaScript code: function selectRow(objTR) { for (i = 0; i < ddlModalityList.options.length; i++) { if (ddlModalityList.options[i].text == objTR.cells[1].innerText.trim()) break; } ddlModalityList.options[i].selected = true; txtSSAETitle.value = objTR.cells[2].innerText.trim(); txtSSName.value = objTR.cells[3].innerText.trim(); } This is repeater code. On row click

How to play .m4a with HTML5 audio in IE(9+) and Safari (Pad)?

别说谁变了你拦得住时间么 提交于 2019-12-06 15:02:20
I need to play .m4a files (recorded on iPhone) in IE(9+) and Safari (iPad, iPhone). I am facing problem with setting correct MIME Type. For playing in IE10 I need to set audio/mp4 but for Safari audio/aac . With audio/mp4 I am getting Cannot play audio file on iPad. With audio/aac I am getting Error: Unsupported audio type or invalid file path in IE Is there a type I can set for both? <audio controls="controls" autoplay="autoplay"> <source src="play.aspx?filename=sound.m4a" type="audio/mp4" /> </audio> Notes Using an alternative player is not a solution for me. I serve the files thorough .aspx

Mozilla Firefox input radio button styling and default settings

橙三吉。 提交于 2019-12-06 14:55:07
I have various form elements on my page, but am having an issue with input radio buttons in Firefox. The radio buttons display perfectly in Safari and Chrome, but are entirely different in Firefox (circular instead of square!) and are :checked by default, which is also an issue. From my research, the use of -moz-appearance is widely recommended, but in this instance I can't find any answers that directly relate to my query. Any help would be greatly appreciated. Markup <form> <label class="radio" for="#">One</label> <input type="radio"> <label class="radio" for="#">Two</label> <input type=

How can i send data from chrome extension to localhost?

≡放荡痞女 提交于 2019-12-06 14:17:40
问题 I am creating a google chrome extension to read my History of browser. All works done. Now i am willing to send the retrieved history data to my localhost server . Is this possible? How to do this? Please anyone help me. Thanks in advance. 回答1: Simply post your data to localhost server. Just remember to add permission in manifest.json. { "manifest_version": 1, "name": "Your Extension", ... "permissions": [ .... "http://localhost:1234/" ] } 回答2: Second version would be via app network in

Website showing differently on Ipad/Iphone simulator vs real Device

前提是你 提交于 2019-12-06 13:38:14
I have searched lots of iPad / iPhone simulators ...tested my website. Website is looking good on almost all simulators...but when i open the website in real iPad every thing is going wrong... As i can't inspect etc on device...so its difficult to know things which are going wrong and can't adjust accordingly...any better solution for this? http://ipadpeek.com/ This simulator was close but not enough... Sorry i can't share website link. A really good service that I use is Browserstack.com and simulates all versions of most devices out there, I've found that there are next to no differences

Cross-browser method for getting width and height of a DIV?

前提是你 提交于 2019-12-06 12:31:23
This is my first post, so please go easy on me. I'm sure I'm doing everything wrong. However, I couldn't find any posts that answered the question above. I use jQuery. I'm trying to find a way to get the current width and height of a DIV element, even if they're set to "auto". I've found many ways to do this, but no method returns the same width in IE. It is important that this method is cross-browser, as it will break the layout of the page if different numbers are returned in different browsers. .width() and .height() do not work because in IE, padding is subtracted (e.g. width() returns 25

Dynamic CSS3 prefix user agent detection

我们两清 提交于 2019-12-06 11:59:38
问题 Is there a better way then using jQuery.browser, or equivalents, for determining css 3 prefixes (-moz, -webkit, etc), as it is disencouraged? Since the css is dynamic (the user can do anything with it on runtime), css hacks and style tag hacks can't be considered. 回答1: I don't see the issue with using the navigator.userAgent to determine if you need to cater for Webkit / Gecko CSS3 prefixes. Or better yet, just stick with CSS2 until CSS3 becomes a W3C Recommendation. The reason use of the

CSS content counters breaks CSS in IE

落花浮王杯 提交于 2019-12-06 11:57:06
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(item, ".") ": "; counter-increment: item } How could I get around this? Without manually adding the