我有跟隨着代碼的HTML顯示圖片,顯示一張圖片:適合屏幕
<html>
<head>
<style>* {margin:0;padding:0;}</style>
</head>
<body style="margin: 0; padding: 0">
<center>
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'URL1':'URL2');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=1");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='URL3' target='_blank'><img src='URL4' border='0' alt=''/></a></noscript>
</center>
</body>
</html>
我要作出這樣的畫面適合屏幕,我試圖把WIDTH =「100% 「在img中,在href中...但它始終是相同的大小。
我該怎麼做?
我猜你不明白JavaScript是做什麼的? – 2013-05-10 16:03:34
我知道這段代碼顯示了一張圖片,我不在乎它是如何工作的,我只是想讓它變大。 – Jorge181 2013-05-10 16:08:25