opera

JavaScript development addon for browsers

混江龙づ霸主 提交于 2019-12-05 04:10:48
问题 Is there an addon that assists JavaScript (client-side) web development in browsers other than Firefox, for which Firebug suffices? Especially something for Internet Explorer (version 7) and Opera (version 9) with which I'm currently experiencing issues. Information about development tools like Firebug, are welcome for any browser. 回答1: Firebug Lite? 回答2: If you are using IE8 - Press F12 and you will see the fantastic developer tool window. If you are using earlier versions IE Developer

Web前段开发人员须知的常见浏览器兼容性问题及解决技巧

北慕城南 提交于 2019-12-05 03:47:59
为什么会有兼容性问题? 由于市场上浏览器种类众多,而不同浏览器其内核亦不尽相同,所以各个浏览器对网页的解析就有一定出入,这也是导致浏览器兼容问题出现的主要原因,我们的网页需要在主流浏览器上正常运行,就需要做好浏览器兼容。 使用Trident内核的浏览器:IE、Maxthon、TT; 使用Gecko内核的浏览器:Netcape6及以上版本、FireFox; 使用Presto内核的浏览器:Opera7及以上版本; 使用Webkit内核的浏览器:Safari、Chrome。 而我现在所说的兼容性问题,主要是说IE与几个主流浏览器如firefox,google等。而对IE浏览器来说,IE7又是个跨度,因为之前的版本更新甚慢,bug甚多。从IE8开始,IE浏览器渐渐遵循标准,到IE9后由于大家都一致认为标准很重要,可以说在兼容性上比较好了,但是在中国来说,由于xp的占有率问题,使用IE7以下的用户仍然很多,所以我们不得不考虑低版本浏览器的兼容。 对浏览器兼容问题,一般分,HTML,Javascript兼容,CSS兼容。 其中html相关问题比较容易处理,无非是高版本浏览器用了低版本浏览器无法识别的元素,导致其不能解析,所以平时注意一点就是。特别是HTML5增加了许多新标签,低版本浏览器有点影响时代进步啊 问题一:不同浏览器的标签默认的外补丁和内补丁不同 问题症状:随便写几个标签

Is there a way to hide the new HTML5 spinbox controls shown in Google Chrome & Opera? [duplicate]

徘徊边缘 提交于 2019-12-05 03:28:21
This question already has answers here : Can I hide the HTML5 number input’s spin box? (14 answers) Closed 6 years ago . Google Chrome now, and Opera before, shows a "spin box" control beside a input field of type "number". I want to be able to style this, or hide it. Are there ways of controlling this UI element yet? EG: <-- That little ui element with an up and down arrow. It's not that functional and its adding unnedded elements to a form I've created. I understand I can just not have the type as "number" but it allows built in prevention of entering anything other than a number, and is

HTML

≡放荡痞女 提交于 2019-12-04 23:14:32
第一节 HTML简介 什么是网页? 网页,是网站中的一个页面,通常是网页是构成网站的基本元素,是承载各种网站应用的平台。通俗的说,网站就是由网页组成的。 通常我们看到的网页都是以htm或html后缀结尾的文件,俗称 HTML文件。 1.1 HTML概述 HTML全称:Hyper Text Markup Language(超文本标记语言) 超文本标记语言是标准通用标记语言(SGML)下的一个应用,也是一种规范,一种标准,它通过标记符号来标记要显示的网页中的各个部分。 HTML是一门用户创建网页文档的标记语言,网页文件本身是一种文本文件,通过在文本文件中添加标记符。 HTML可以告诉浏览器如何显示其中的内容(如:文字如何处理,画面如何安排,图片如何显示、包括音频、视频等等如何播放)。 简单一句话:HTML是一门用来创建网页的标记语言。 1.2 HTML特点 其主要特点如下: 1 简易性:超文本标记语言版本升级采用超集方式,从而更加灵活方便。 2 可扩展性:超文本标记语言采取子类元素的方式,为系统扩展带来保证。 3 平台无关性:超文本标记语言可以使用在广泛的平台上,这也是万维网(www)盛行的另一个原因。 4 通用性:HTML是网络的通用语言,一种简单、通用的标记语言。 1.3 HTML的发展 超文本标记语言(第一版)——在1993年6月作为互联网工程工作小组(IETF)工作草案发布

Script to automate URL opening in multiple tabs in Firefox or Opera from a text file

*爱你&永不变心* 提交于 2019-12-04 21:49:21
I have a text file with lots of links-each line has a link (i.e the separator is '\n'). i want to write a script so that each link opens in a different tab in Firefox or Internet explorer. How can I do this? I'm on Windows 7 Create a text file called whatever.bat and put it on your desktop. edit the file and enter: set "fileList=" FOR /F "usebackq delims==" %%i IN ("C:\Documents and Settings\mdevine\Desktop\urls.txt") DO call set "fileList=%%fileList%% %%i" start firefox %fileList% close and save double click on it Note: C:\Documents and Settings\mdevine\Desktop\urls.txt is a text file that

JavaScript对象的长度

半世苍凉 提交于 2019-12-04 19:24:14
我有一个JavaScript对象,是否有内置的或公认的最佳实践方法来获取此对象的长度? const myObject = new Object(); myObject["firstname"] = "Gareth"; myObject["lastname"] = "Simpson"; myObject["age"] = 21; #1楼 更新 :如果您使用的是 Underscore.js (建议使用,它是轻量级的!),那么您可以 _.size({one : 1, two : 2, three : 3}); => 3 如果不是 ,并且您不想由于任何原因弄乱Object属性,并且已经在使用jQuery,那么同样可以访问一个插件: $.assocArraySize = function(obj) { // http://stackoverflow.com/a/6700/11236 var size = 0, key; for (key in obj) { if (obj.hasOwnProperty(key)) size++; } return size; }; #2楼 以下是James Coglan在CoffeeScript中针对那些放弃了直接JavaScript的人的答案:) Object.size = (obj) -> size = 0 size++ for own key of

window.pixelRatio not working in Opera. Any alternative?

≯℡__Kan透↙ 提交于 2019-12-04 18:28:49
I have been working on making our CMS export valid content for mobile devices. One of the problems we encountered was that newer devices, like the iphone4 have a higher resolution display so we needed to find a way to render the same page correctly on older devices and newer that use a 300dpi display. So far we used javascript and window.devicePixelRatio in order to get the dpi resolution, but it turns out this is not working in opera(?) and opera mobile. Any suggestetions or maybe a defferent approach? I researched a bit but was unable to find somethig. Thanks I think you might misunderstand

Opera + border-radius + svg background = bug?

前提是你 提交于 2019-12-04 17:34:36
i've got bug in Opera 11.64 browser. Check it out here http://jsfiddle.net/wqCDm/13/ Button has background: url(data:image/svg+xml;base64... and is located in block with position: fixed . When you start scroll page background rolls away, and after you get back to the top it shows up again. Without border-radius it works properly. I confirmed that this is a bug and it is still the case in Opera 12. Did you report it on Opera Bugs Reporting system ? Update 2012-06-21 : OK. CONFIRMED. It is now CORE-47072 in Opera Internal Bug tracking system. 来源: https://stackoverflow.com/questions/11114636

setSelectionRange not behaving the same way across browsers?

空扰寡人 提交于 2019-12-04 13:47:33
I found this on a different question: setCaretToPos = function(input, selectionStart, selectionEnd){ if(input.setSelectionRange){ input.focus(); input.setSelectionRange(selectionStart, selectionEnd); }else if(input.createTextRange){ var range = input.createTextRange(); range.collapse(true); range.moveEnd('character', selectionEnd); range.moveStart('character', selectionStart); range.select(); } }; setCaretToPos(8, 12); It should select text from a text area between the 8th character and 12th character. It works in Firefox and Chrome, but in Opera I get the wrong selection. Offset moves two

JavaScript check if browser extension is installed for Chrome, Firefox and Opera

て烟熏妆下的殇ゞ 提交于 2019-12-04 11:57:50
问题 I want to show custom bar ( notification like: Install our plugin. ) on our site if extension is not installed for Chrome, Firefox and Opera. None will be displayed if extension is installed. The idea is : 1. User visits our site and a bar with message appears - "Hey, install our extensions". 2. User clicks on install and extension is installed. No need for the user to open it. 3. User visit our site again and the bar does not appear again as the extension is installed. We talk only for