这是一个有用的功能,但是有没有办法禁用它?例如,如果表单是单个文本字段并且旁边已经有一个"清除"按钮,那么也有多余的X.在这种情况下,删除它会更好.
可以这样做,如果是,怎么做?
在IE10中,滚动条并不总是存在...当它出现时它作为一个叠加...它是一个很酷的功能但我想关闭我的特定网站,因为它是一个全屏应用程序和我的徽标和菜单背后都丢失了.
IE10:
铬:
任何人都知道在IE10上始终将滚动条固定到位的方法吗?
overflow-y:滚动似乎不起作用!它只是将它永久地放在我的网站上.
它可能是导致问题的引导,但我不知道哪个部分!看这里的例子:http://twitter.github.io/bootstrap/
html css scrollbar internet-explorer-10 internet-explorer-11
如何针对某些情况(如Internet Explorer特定的CSS或特定于Internet Explorer的JavaScript代码)仅定位Internet Explorer 10?
我试过这个,但它不起作用:
<!--[if IE 10]> <html class="no-js ie10" lang="en"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
Run Code Online (Sandbox Code Playgroud)
Internet Explorer 10忽略条件注释并使用<html lang="en" class="no-js">
而不是<html class="no-js ie10" lang="en">
.
html javascript css conditional-comments internet-explorer-10
在微软的网站上,他们声称简单的doctype声明就足够了.但即使是像这样简短的文档又回归到IE7模式:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
所以我使用Win7 x64和VS2010并安装了IE10 Win7 Preview和ReSharper 6.1.
当我尝试启动调试时,收到以下内容:
"在机器'MINE'上附加脚本调试器以处理'[1111] iexplore.exe'失败.已连接调试器."
我可以单击确定并查看附加的调试会话 - [1111]显示为灰色,并且还有另一个iexplore.exe实例和我的解决方案标题.我可以手动附加,它工作正常.
我想也许因为有两个iexplore.exe pids会出现问题,没有两个标签或窗口打开,我禁用自动崩溃恢复.
试过这个: 附加脚本调试器来处理机器'NAME'上的'[XXXX] IEXPLORE.EXE'失败
不工作.
有任何想法吗?
visual-studio-2010 visual-studio windows-7-x64 internet-explorer-10
我正在创建一个事件,所以使用DOM Event构造函数:
new Event('change');
Run Code Online (Sandbox Code Playgroud)
这在现代浏览器中工作正常,但在Internet Explorer 9,10和11中,它失败了:
Object doesn't support this action
Run Code Online (Sandbox Code Playgroud)
如何修复Internet Explorer(理想情况下通过polyfill)?如果我不能,是否有可以使用的解决方法?
custom-events dom-events internet-explorer-9 internet-explorer-10 internet-explorer-11
我正试图做一个简单的postMessage
例子......
删除这些条件中的任何一个,并且工作正常:-)
但据我所知,postMessage
当两个窗口共享一个原点时,窗口之间似乎只能在IE10中工作.(嗯,事实上 - 奇怪的是 - 行为稍微宽容一点:共享主机的两个不同的起源似乎也有效).
(注意:这个问题触及了问题,但它的答案是关于IE8和IE9 - 而不是10)
更多细节+例子......
<!DOCTYPE html>
<html>
<script>
window.addEventListener("message", function(e){
console.log("Received message: ", e);
}, false);
</script>
<button onclick="window.open('http://jsbin.com/ameguj/1');">
Open new window
</button>
</html>
Run Code Online (Sandbox Code Playgroud)
<!DOCTYPE html>
<html>
<script>
window.opener.postMessage("Ahoy!", "*");
</script>
</html>
Run Code Online (Sandbox Code Playgroud)
这适用于:http://jsbin.com/ahuzir/1 - 因为两个页面都托管在同一个源(jsbin.com).但是将第二页移到其他地方,它在IE10中失败了.
html5 compatibility postmessage cross-browser internet-explorer-10
在chrome上,当用户单击"清除"按钮时,会在搜索输入上触发"搜索"事件.
有没有办法在Internet Explorer 10上的javascript中捕获相同的事件?
所以,使用Mozilla和WebKit,我有一个不错的解决方案,用一个父元素替换select
盒子上的箭头appearance: none;
.
在大多数情况下,我禁用了此功能.对于IE10,我实际上无法禁用它,因为我的条件注释实际上不起作用.
这是我的标记:
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)]> <html class="ie10plus"> <![endif]-->
<!--[if !(IE)]><!--> <html> <!--<![endif]-->
Run Code Online (Sandbox Code Playgroud)
该类ie10plus
实际上并没有使它成为标记的方式.
我也觉得可能有合法的方法来替换IE中的箭头.我并不反对实际解决这个问题.appearance: none;
但不起作用.那我该怎么办?
我有一个带背景图片的div集:
<div>Play Video</div>
Run Code Online (Sandbox Code Playgroud)
使用以下CSS:
div {
background-image: url('icon.png');
background-image: url('icon.svg'), none;
background-size: 40px 40px;
background-repeat: no-repeat;
background-position: 90% 50%;
padding: 20px;
width: 150px;
}
Run Code Online (Sandbox Code Playgroud)
背景大小在Firefox,Safari和Chrome中得到尊重.在IE8中,SVG由PNG文件替换.但是,在IE9和IE10中,SVG文件的大小很小.这个问题似乎与div的宽度和高度有关.如果我添加150px的高度,SVG将正确呈现.如果我把它缩小(即100px),图形就开始缩小.
有没有人找到办法在资源管理器中解决这个问题?有没有办法告诉IE使用背景大小值独立于div的宽度和高度?
css svg internet-explorer-9 internet-explorer-10 background-size
css ×4
html ×2
javascript ×2
css3 ×1
dom-events ×1
events ×1
html-input ×1
html5 ×1
postmessage ×1
scrollbar ×1
svg ×1
windows ×1
windows-8 ×1