简体   繁体   English

<a href=“”>在IE中无法使用,但在Chrome中可以使用</a>

[英]<a href=“”> not working in IE but does in chrome

So I am trying to get the this HTML page to work, its in CSS & HTM L. When I try to click the "a href="link here" it doesn't work however if I open the window in Chrome vs. IE it works fine. Any idea as to why? The code is below for the HTML I can post the CSS if needed. The links below are not the actual links. The real links are going to a file on my pc/share drive. I am trying to load an HTA which is why it needs done in IE not chrome and no hrefs will work in IE with this for some reason no matter if its a https:// or anything it jsut doesn't work in IE. 因此,我试图使此HTML页面在CSS & HTM L中正常工作。当我尝试单击"a href="link here" ,如果我在Chrome vs. IE中打开窗口,则无法正常工作它可以正常工作,为什么呢?下面是HTML代码,如果需要的话,我可以发布CSS 。下面的链接不是实际的链接。真正的链接将进入我的PC /共享驱动器上的文件。我正在尝试加载HTA,这就是为什么它需要在IE中完成而不是在chrome中,并且出于某种原因,无论hrefhttps是否在IE中都无法正常工作,因此href都不能在IE中与此一起工作。

 var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-7243260-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); 
 <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js"></script> <div class="container"> <header> <h1><img src="logo.png" width="500" height="180"></h1> </header> <div class="component"> <h2>Downtime</h2> <!-- Start Nav Structure --> <button class="cn-button" id="cn-button">Menu</button> <div class="cn-wrapper" id="cn-wrapper"> <ul> <li><a href="C:\\Program Files (x86)\\Futuremark\\SystemInfo" target="_blank"><span>Click Me</span></a></li> </ul> </div> <!-- End of Nav Structure --> </div> <section> <h1> <center>About</center> </h1> <p>Cool text here guys :) <br> <br> Even cooler text :). </P> </section> </div> 

<a href="c:\Program Files (x86)\Futuremark\SystemInfo" target="_blank"><span>Click Me</span></a> 

is a folder uri. 是文件夹uri。 IE will ignore it to prevent just any website from accessing the local file system.(shell)... if an attacker gains access to your computers file system, then they gain access to other sensitive information. IE会忽略它,以防止任何网站访问本地文件系统。(shell)...如果攻击者获得了对您计算机文件系统的访问权限,则他们将获得对其他敏感信息的访问权限。

IE used to allow IE曾经允许

<iframe src="c:\"/>

but that has now been patched.... 但是现在已经修补了...。

see the vendors website https://www.futuremark.com/ for advice on using their desktop application with web browsers... usually interaction between IE and a desktop application is done using an ActiveX control.. eg. 有关将其桌面应用程序与Web浏览器一起使用的建议,请参见供应商网站https://www.futuremark.com/。IE和桌面应用程序之间的交互通常是使用ActiveX控件完成的。 Adobe PDF reader. Adobe PDF阅读器。 Web pages then can use scripting to launch and interact with the desktop product. 然后,网页可以使用脚本来启动桌面产品并与之交互。 IE has security zones .... other browsers have per site security settings.... IE具有安全区域...。其他浏览器具有每个站点的安全设置...。

You could also use a browser extension in IE that would open the futuremark folders in a shell folder instead of in a browser frame. 您还可以在IE中使用浏览器扩展,该扩展将在shell文件夹而不是浏览器框架中打开futuremark文件夹。 The software vendor may already have one that you can install in IE and chrome and FX. 该软件供应商可能已经拥有可以在IE和chrome和FX中安装的软件。

you must add a http:// in your links 您必须在链接中添加http://
like this : 像这样 :

 <li><a href="http://google.com" target="_blank"><span>Google</span></a></li> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM