所以我使用的是this flash fish code和this is my theme。我試圖讓魚停留在邊欄邊界之間,而不必向外移動。我發現,如果我使用left:600px
移動側邊欄,但是當縮小瀏覽器時側欄與我的帖子重疊,並且主題在不同的屏幕分辨率下顯示方式不同,我可以將魚留在側欄中。我對這一切都很陌生,我嘗試了很多東西,我越來越絕望。在tumblr主題上定位flash對象
有沒有另一種方法可以讓魚留在邊欄中?或只是一種方法來繼續使用左側屬性,而不會重疊帖子?
魚CSS
#fish{
position:fixed;
padding-left:500px;
width:100px;
top:0px;
height:100%;
}
側邊欄代碼
#sb {
background-image:url('');
font-family:calibri;
text-align:center;
font-size:8px;
text-transform:uppercase;
color:{color:sbtext};
width:200px;
padding:10px;
left:600px;
height:100%;
border:1px solid {color:border};
position:fixed;
bottom:0;
background:transparent;
}
職位代碼
#stuffcontainer {
margin-left:250px;
float:left;
margin-top:75px;
text-align:justify;
font-family:calibri;
color:{color:text};
margin-bottom: 5%;
padding-left:200px;
}
#stuff {
width:500px;
margin-top:50px;
text-align:justify;
font-size:11px;
line-height:90%;
letter-spacing:0.5px;
color:{color:text};
padding-bottom:15px;
padding:20px;
border:1px solid {color:border};
background-color:{color:bg};
}
魚代碼
<div id="fish" style="position:fixed; left:120px;top:0px;" class="main">
<object type="application/x-shockwave-flash" style="outline:none;" data="http://cdn.abowman.com/widgets/fish/fish.swf?up_fishName=Fish&up_fishColor3=D7EAF5&up_backgroundColor=FFFFFF&up_fishColor8=D7EAF5&up_numFish=10&up_fishColor10=D7EAF5&up_backgroundImage=http://&up_fishColor9=D7EAF5&up_fishColor6=D7EAF5&up_fishColor2=D7EAF5&up_foodColor=BBBBBB&up_fishColor5=D7EAF5&up_fishColor7=D7EAF5&up_fishColor1=D7EAF5&up_fishColor4=D7EAF5&"
width="200" height="100%">
<param name="movie" value=
"http://cdn.abowman.com/widgets/fish/fish.swf?up_fishName=Fish&up_fishColor3=D7EAF5&up_backgroundColor=FFFFFF&up_fishColor8=D7EAF5&up_numFish=10&up_fishColor10=D7EAF5&up_backgroundImage=http://&up_fishColor9=D7EAF5&up_fishColor6=D7EAF5&up_fishColor2=D7EAF5&up_foodColor=BBBBBB&up_fishColor5=D7EAF5&up_fishColor7=D7EAF5&up_fishColor1=D7EAF5&up_fishColor4=D7EAF5&" />
<param name="AllowScriptAccess" value="always" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="tl" />
</object>
更新:我試着移動魚碼,以便代碼與側邊欄在同一個div中。沒有運氣。
也是我的整個代碼可以在這裏找到http://pastebin.com/raw.php?i=KmAPyKuH – user3460858