草庐IT

firefox-addon-webextensions

全部标签

javascript - 在 Firefox 和 IE 中如何在拖动不同目标时更改光标?

在HTML5中进行拖放时,我需要能够根据放置目标更改光标。在Chrome中,这通过改变dropEffect来实现,if(e.currentTarget.id=='dropMove'){e.originalEvent.dataTransfer.dropEffect='move';}else{e.originalEvent.dataTransfer.dropEffect='link';}但是在IE和Firefox中更改dropEffect对光标没有影响。请参阅以下fiddle:http://jsfiddle.net/ksoncan34/s7kN5/我已经尝试使用window.cursor手

javascript - 为什么使用 "always allow"时 Firefox 中没有 `getUserMedia` 选项?

我在我的应用程序中使用getUseMedia函数。每次我打开Firefox权限弹出窗口都会出现。没有alwaysallow选项。根据Bugzilla,此功能已在Firefox30中实现-当前版本为43。我正在像这样使用getUserMedia:navigator.getUserMedia=(navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia);是吗?为什么我不能选择allowalways选项? 最佳答

javascript - 为什么使用 "always allow"时 Firefox 中没有 `getUserMedia` 选项?

我在我的应用程序中使用getUseMedia函数。每次我打开Firefox权限弹出窗口都会出现。没有alwaysallow选项。根据Bugzilla,此功能已在Firefox30中实现-当前版本为43。我正在像这样使用getUserMedia:navigator.getUserMedia=(navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia);是吗?为什么我不能选择allowalways选项? 最佳答

html - navigator.geolocation.getCurrentPosition 回调在 Firefox 10 上不起作用

我正在构建一个使用GeolocationAPI的应用程序。我似乎无法获得一段非常简单的代码来在Firefox10上工作。这是代码:window.onload=function(){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(position){alert('itworks');},function(error){alert('Erroroccurred.Errorcode:'+error.code);});}else{alert('nogeolocationsupport');}

html - navigator.geolocation.getCurrentPosition 回调在 Firefox 10 上不起作用

我正在构建一个使用GeolocationAPI的应用程序。我似乎无法获得一段非常简单的代码来在Firefox10上工作。这是代码:window.onload=function(){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(position){alert('itworks');},function(error){alert('Erroroccurred.Errorcode:'+error.code);});}else{alert('nogeolocationsupport');}

html - 内容 url 在 Firefox 中不起作用

很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visitthehelpcenter.关闭10年前。我的CSS文件是:#name_wrong_img{width:43px;height:29px;}这是我的HTML代码:以上代码在Firefox和Chrome中都运行良好。#name_wrong_img{content:url(wrong.jpg);width:43px;height:29px;}这在Chrome中运行良好。但在Firefox中没有。这里面有什么问题?

html - 内容 url 在 Firefox 中不起作用

很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visitthehelpcenter.关闭10年前。我的CSS文件是:#name_wrong_img{width:43px;height:29px;}这是我的HTML代码:以上代码在Firefox和Chrome中都运行良好。#name_wrong_img{content:url(wrong.jpg);width:43px;height:29px;}这在Chrome中运行良好。但在Firefox中没有。这里面有什么问题?

html - CORS withCredentials XHR 预检不在 Firefox 中发布 Cookie

我正在尝试使用凭据进行CORSXHR发布。它在Chrome中运行良好,但在Firefox中运行不佳。cookie不存在于飞行前请求header中,因此我看到了302。这在Chrome中完美运行,因为cookie位于飞行前请求header中,随后的POST通过。为什么这在FF中不起作用?我错过了什么?//assumeurl,boundEventHandleranduploadDataaredefined,asthisdefinitelyworksinChromevarxhr=newXMLHttpRequest();xhr.open("POST",url,true);xhr.addEven

html - CORS withCredentials XHR 预检不在 Firefox 中发布 Cookie

我正在尝试使用凭据进行CORSXHR发布。它在Chrome中运行良好,但在Firefox中运行不佳。cookie不存在于飞行前请求header中,因此我看到了302。这在Chrome中完美运行,因为cookie位于飞行前请求header中,随后的POST通过。为什么这在FF中不起作用?我错过了什么?//assumeurl,boundEventHandleranduploadDataaredefined,asthisdefinitelyworksinChromevarxhr=newXMLHttpRequest();xhr.open("POST",url,true);xhr.addEven

html - Firefox:box-sizing 和 min-height

我不明白:这真的是一个错误还是我只是遗漏了什么?我为HTML文档中的所有div设置了box-sizing:border-box(所有-moz和-webkit当然是前缀)。所以这意味着div的height总是包含它的padding。期望min-height属性的行为类似是合理的。但显然,在Firefox中它没有。我的意思是,当我有一个未设置height(即height:auto)但设置了min-height的div(例如,220px)和padding(例如,10px),它导致div的整体高度为240px而不是Firefox中的220!不过,无论哪种方式,它在Chrome和Opera中都保