html插入flash,边沿有空白的解决办法

  • 1  遇到了这个问题,flash有空隙。
  • 2  开始试了很久各种方法都不管用,最后在论坛看到了一种简单的解决方法。
  • 3  打开DW,然后找到 <body>
  • 4  在右侧标签中把下面几项设置成 0,比如:<body bgcolor="#ddece5" text="#ddece5" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
  • 5  然后在body中插入 flash,你可以发现flash上边沿和左边眼紧贴浏览器窗体!但是右边和下边不一定,这个是显然的,因为浏览器的像素不同人是不同的。所以我做了下面一步。
  • 6  插入一个1单位表格在body中 将flash主体托入表格中,将表格属性设置成中间对其。OK了不管浏览其像素多少,打开的flash都是上边沿贴这浏览器,左右下 是自适的宽度,很美观了,而且有棱次感!

PS:其实,想要去掉上边沿的最好方法是调用  JS代码,新建一个  JS 在html中调用,这样的flash窗体跟浏览器没有空隙!不过貌似繁琐了点。

版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《html插入flash,边沿有空白的解决办法

随机文章

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)