我想在我的网站上使用siFR,但我有一个问题。我已经实现了sIFR,它似乎可行,但是当它加载并呈现新标题时,它会将我的内容“推送”到底部。我认为10px左右。
为什么会这样?
有人可以帮忙吗?
继承人我的sifr-config.js
var futura = { src: 'http://www.bogazci.com/wp-content/themes/bogazci_09/sifr/flash/gppmc.swf' };
sIFR.activate(futura);
sIFR.replace(futura, {
selector: 'h1',
css: '.sIFR-root { background-color: #ffffff; color: #960000; }',
ratios: [8, 1.42, 11, 1.38, 17, 1.32, 21, 1.3, 23, 1.27, 30, 1.28, 44, 1.26, 65, 1.25, 66, 1.24, 67, 1.25, 70, 1.24, 71, 1.25, 118, 1.24, 119, 1.23, 1.24],
});
继承人sifr.css
@media screen {
/* Example: */
.sIFR-active h1 {
visibility: hidden;
font-family: Arial;
}
}
继承我的page.css
body {
font-size: 12px;
font-family: arial, helvetica, sans-serif;
background-color: #666;
}
h1 {
font-family:Arial;
font-size:18px;
/* letter-spacing:-1px; */
color:#333; /* 16216c, 333, d90000, 16216c */
font-weight:normal;
}
继承人的实施:
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/sIFR/css/sifr.css" type="text/css" media="screen" />
<script src="<?php bloginfo('template_url'); ?>/sIFR/js/sifr.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/sIFR/js/sifr-debug.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/sIFR/js/sifr-config.js" type="text/javascript"></script>
..
..
<h1><?php the_title() ?></h1>
<script type="text/javascript">
if(typeof sIFR == "function"){
sIFR.replaceElement("h1", named({sFlashSrc: "<?php bloginfo('template_url'); ?>/sIFR/gppmc.swf", sColor: "#999999"}));
sIFR();
};
</script>
</body>
我不知道。请帮忙。
见下我的页面:
http://www.bogazci.com/index.php/services
谢谢
答案 0 :(得分:0)
Flash电影中似乎有很多额外的空间。使用tuneHeight
和offsetTop
参数进行更正。
此外,您应该删除仍包含在页面中的sIFR 2的配置。