Div Style = Safari HELP !! [英] Div Style = Safari HELP!!

查看:62
本文介绍了Div Style = Safari HELP !!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在photoshop中制作一个坚实的图像,并希望将我的闪光灯覆盖在它上面(所以它有一个很好的背景流血)无论如何我正在使用的代码是:


[ HTML]< div style =" width:800px;身高:485px;溢出:隐藏;字体大小:12像素;颜色:#000000;位置:绝对的; & gt;& lt; object classid =;左:433px;顶部:284px;" clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"基本代码= QUOT; HTTP://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"宽度= QUOT; 800"高度= QUOT; 500" ID = QUOT; testdiv" align =" middle">

< param name =" allowScriptAccess"值= QUOT;导航特殊" />

< param name =" movie"值= QUOT;&的main.swf QUOT; />< param name =" quality"值=&是高电平QUOT; />< param name =" bgcolor"值= QUOT;#FFFFFF" />< embed src =" main.swf"质量=&是高电平QUOT; BGCOLOR = QUOT;#FFFFFF"宽度= QUOT; 800"高度= QUOT; 500"命名= QUOT;主"对齐= QUOT;中间"的allowScriptAccess = QUOT;导航特殊"类型= QUOT;应用程序/ x-冲击波闪光" PLUGINSPAGE = QUOT; HTTP://www.macromedia.com/go/getflashplayer" />

< / object>< / div>

< table width =" 100%"高度= QUOT; 100%QUOT;边界=" 0" CELLPADDING = QUOT; 0" cellspacing =" 0">

< tr>

< td valign =" middle">< div align =" center"> < br />

< table width =" 100%"边界=" 0" CELLPADDING = QUOT; 0" cellspacing =" 0">

< tr>

< td height =" 5" bgcolor ="#000000">< img src =" images / spacer.gif"宽度= QUOT 1 QUOT;高度= QUOT 1 QUOT; />< / td>

< / tr>

< tr>

< td height =" 186" >< div align =" center">< img src =" images / site / main.jpg"宽度= QUOT; 864"高度= QUOT; 777" />< / div>< / td>

< / tr>

< tr>

< td height = QUOT; 5英寸bgcolor ="#000000">< img src =" images / spacer.gif"宽度= QUOT 1 QUOT;高度= QUOT 1 QUOT; />< / td>

< / tr>

< / table> [/ HTML]


我对这一切仍然很新,所以我不确定我在做什么,但无论哪种方式,它在IE中似乎都很好。但是当我在Mac上使用Safari测试它时,它会将闪光片推到50像素左右。


请大家帮忙:)谢谢!

I keep making a solid image in photoshop and want to overlay my flash ontop of it (so it has a nice background bleed) anyways the code I am using is :

[HTML]<div style="width: 800px; height: 485px; overflow:hidden; font-size:12px; color:#000000; position:absolute; &gt;&lt;object classid=; left: 433px; top: 284px;"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="500" id="testdiv" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="main.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="main.swf" quality="high" bgcolor="#ffffff" width="800" height="500" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle"><div align="center"><br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" /></td>
</tr>
<tr>
<td height="186"><div align="center"><img src="images/site/main.jpg" width="864" height="777" /></div></td>
</tr>
<tr>
<td height="5" bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" /></td>
</tr>
</table>[/HTML]

I am still so new to all this so I am not sure what I am doing, but either way, it seems fine in IE. But when I test it on my Mac with Safari it is pushing the flash piece off like 50 pixels or so.

Please any help at all :) thank you!

推荐答案

一个片段没有帮助。我们需要看到完整的标记。在任何情况下,Safari都会显示你所写的内容,IE显示你认为你写的是什么,但IE会(并且几乎总是)错误。
A snippet is not helpful. We need to see the complete markup. In any case, it will be Safari that is showing what you wrote and IE showing what it think you wrote, but IE will be (and almost always is) wrong.


对不起,这里是完整的代码(index.html)


[HTML]<!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

< html xmlns =" http://www.w3.org / 1999 / xhtml">

< head>

< title>无标题< / title>

< meta http-equiv = QUOT;内容类型"含量=" text / html的; charset = ISO-8859-1">

< style type =" text / css">

body {

background -color:#000;

margin-left:0px;

margin-top:0px;

margin-right:0px;

margin-bottom:0px;

position:absolute;

height:100%;

width:100%;

溢出:隐藏;

}

字体{

}

div {

font-family:Geneva,Arial,Helvetica,sans-serif;

font-size:x-small;

font-style:正常;

颜色:#FFFFFF;

}

.style1 {color:#000000}

.style2 {color:#FFFFFF}

< / style>

< / head>

< body>

< div style =" width:800px;身高:485px;溢出:隐藏;字体大小:12像素;颜色:#000000;位置:绝对的; & gt;& lt; object classid =;左:433px;顶部:284px;" clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"基本代码= QUOT; HTTP://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"宽度= QUOT; 800"高度= QUOT; 500" ID = QUOT; testdiv" align =" middle">

< param name =" allowScriptAccess"值= QUOT;导航特殊" />

< param name =" movie"值= QUOT;&的main.swf QUOT; />< param name =" quality"值=&是高电平QUOT; />< param name =" bgcolor"值= QUOT;#FFFFFF" />< embed src =" main.swf"质量=&是高电平QUOT; BGCOLOR = QUOT;#FFFFFF"宽度= QUOT; 800"高度= QUOT; 500"命名= QUOT;主"对齐= QUOT;中间"的allowScriptAccess = QUOT;导航特殊"类型= QUOT;应用程序/ x-冲击波闪光" PLUGINSPAGE = QUOT; HTTP://www.macromedia.com/go/getflashplayer" />

< / object>< / div>

< table width =" 100%"高度= QUOT; 100%QUOT;边界=" 0" CELLPADDING = QUOT; 0" cellspacing =" 0">

< tr>

< td valign =" middle">< div align =" center"> < br />

< table width =" 100%"边界=" 0" CELLPADDING = QUOT; 0" cellspacing =" 0">

< tr>

< td height =" 5" bgcolor ="#000000">< img src =" images / spacer.gif"宽度= QUOT 1 QUOT;高度= QUOT 1 QUOT; />< / td>

< / tr>

< tr>

< td height =" 186" >< div align =" center">< img src =" images / site / main.jpg"宽度= QUOT; 864"高度= QUOT; 777" />< / div>< / td>

< / tr>

< tr>

< td height = QUOT; 5英寸bgcolor ="#000000">< img src =" images / spacer.gif"宽度= QUOT 1 QUOT;高度= QUOT 1 QUOT; />< / td>

< / tr>

< / table>

< br />

< span class =" style1">< span class =" style2"> COPYRIGHT& copy; 2008.保留所有权利< / span>。 < br />

< / span>< br />

< / div>< / td>

< / tr>

< / table>


< / body>

< / html> [ / HTML]


你能覆盖闪存吗?如果你能做我的代码错了吗?什么是正确的方法。再次感谢您的帮助:)
Sorry about that, here is the full code (index.html)

[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
body {
background-color: #000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
position: absolute;
height: 100%;
width: 100%;
overflow:hidden;
}
font {
}
div {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: x-small;
font-style: normal;
color: #FFFFFF;
}
.style1 {color: #000000}
.style2 {color: #FFFFFF}
</style>
</head>
<body>
<div style="width: 800px; height: 485px; overflow:hidden; font-size:12px; color:#000000; position:absolute; &gt;&lt;object classid=; left: 433px; top: 284px;"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="500" id="testdiv" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="main.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="main.swf" quality="high" bgcolor="#ffffff" width="800" height="500" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle"><div align="center"><br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" /></td>
</tr>
<tr>
<td height="186"><div align="center"><img src="images/site/main.jpg" width="864" height="777" /></div></td>
</tr>
<tr>
<td height="5" bgcolor="#000000"><img src="images/spacer.gif" width="1" height="1" /></td>
</tr>
</table>
<br />
<span class="style1"><span class="style2">COPYRIGHT &copy; 2008. ALL RIGHTS RESERVED</span>. <br />
</span><br />
</div></td>
</tr>
</table>

</body>
</html>[/HTML]

Can you not overlay flash? If you can am I doing my code wrong? what is the correct way to do it. Again thank you for the help :)


因为看起来您有图像,闪存和一行文本,所以不需要表格,因为没有表格数据。而且由于我无法从你提出的复杂的表格构造中弄清楚你在尝试什么,我只是猜测你是在追求这样的东西或其他东西[1]。


Cursory在Mac OS X 10.4.11 Opera,Mac Safari,WebKit nightly,Camino,Mac SeaMonkey中进行了测试;并且,在XP IE / 6.0和IE / 7.0中。


最好,希望这有帮助...


[1] Flash O''Rama
Since it seems you have an image, a flash thing, and one line of text, a table is not needed as there is no tabular data. And since I am incapable of figuring out what you are attempting from the convoluted table construct you presented, I am just going to guess you''re after something or other like this [1].

Cursory tested in Mac OS X 10.4.11 Opera, Mac Safari, WebKit nightly, Camino, Mac SeaMonkey; and, in XP IE/6.0 and IE/7.0.

Best, and hope this helps...

[1] Flash O''Rama

这篇关于Div Style = Safari HELP !!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆