日期:2014-05-17  浏览次数:20595 次

图片边框的问题
flash中用到的图片总是出现边框怎么去掉啊?

代码如下:
  <td width="950" height="334" valign="middle" >
<div align="center" >
  <script type="text/javascript">
<!--
      var focus_width = 980;
      var focus_height = 344;
      var text_height = 0;
      var swf_height = focus_height ;
      var pics = 'images/flash1.jpg|images/flash2.jpg|images/flash3.jpg';
      var links = '';
      var texts = '';
      document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');
      document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/newspic.swf"><param name="quality" value="high"><param name="bgcolor" value="#000">');
      document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
      document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">');
      document.write('<embed src="images/newspic.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor="#000" quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
      document.write('</object>');
//-->
</script>
                </div>
                </td>

------最佳解决方案--------------------
引用:
CSS code?12img { border:0px }


正确,图片本来是没有边框问题,加了A标签之后,部分浏览器就会有,不兼容
------其他解决方案--------------------

img { border:0px }

------其他解决方案--------------------
引用:
CSS code?12img { border:0px }


可是这是一个flash里面引用的图片flash1,2,3啊怎么写img{border:0}啊?