簡體   English   中英

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

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

因此,我試圖使此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> 

是文件夾uri。 IE會忽略它,以防止任何網站訪問本地文件系統。(shell)...如果攻擊者獲得了對您計算機文件系統的訪問權限,則他們將獲得對其他敏感信息的訪問權限。

IE曾經允許

<iframe src="c:\"/>

但是現在已經修補了...。

有關將其桌面應用程序與Web瀏覽器一起使用的建議,請參見供應商網站https://www.futuremark.com/。IE和桌面應用程序之間的交互通常是使用ActiveX控件完成的。 Adobe PDF閱讀器。 然后,網頁可以使用腳本來啟動桌面產品並與之交互。 IE具有安全區域...。其他瀏覽器具有每個站點的安全設置...。

您還可以在IE中使用瀏覽器擴展,該擴展將在shell文件夾而不是瀏覽器框架中打開futuremark文件夾。 該軟件供應商可能已經擁有可以在IE和chrome和FX中安裝的軟件。

您必須在鏈接中添加http://
像這樣 :

 <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