我從我的桌面適當的鍍鉻加載圖像 它的加載,但在Firefox中 通過圖像標記代碼如下 提供其不加載的問題是在這條線Firefox的圖像加載問題
<img alt="Splitwise" id="logo" src="C:\Users\Admin\Desktop\defie.bmp">
代碼:
<header>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<img alt="Splitwise" id="logo" src="C:\Users\Admin\Desktop\defie.bmp">
<header>
<div class="menu">
<!--<a href="/">
<img alt="Splitwise" id="logo" src="//dx0qysuen8cbs.cloudfront.net/assets/logo-ffe4f2b804af3331e58f523445a844e2.png">
</a>-->
<ul>
<li class="active"><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
<div class="clearFloat"></div>
</ul>
</div>
</header>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.3.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
爲什麼C:\驅動器上的映像? – desbest
相關.. http://stackoverflow.com/questions/4090712/why-cant-i-do-img-src-c-localfile-jpg –