我是一名动画媒体设计师,试图将我的一些客户的工作融入网站,以获得她的圣诞礼物.我正在尝试调整.swf的大小以匹配浏览器大小,因为固定大小真的搞乱了我的其他调整大小的布局.
每次我将.swf的宽度/高度设置为"100%"或"自动"时,电影会在div容器的顶部和底部被切断.当我将容器的大小更改为100%时,我会看到一部长而细的电影.我在下面复制了我的代码,我非常感谢你的帮助.随意批评关于我的代码的任何其他事情 - 我是一个CSS处女.
非常感谢!:)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
</script>
<title>Eat, Drink, and Be Mary</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<style type="text/css" media="screen">
body {
background:url('images/home.jpg');
background-repeat:no-repeat;
background-size:cover;
position:absolute;
}
html, body {
height:100%;
width:auto;
min-width:700;
}
body { margin:0; padding:0; overflow:hidden; }
.swfcontainer {
margin-top:3%;
width:100%;
height:30%; …Run Code Online (Sandbox Code Playgroud)