我在使用sifr2的字体大小上遇到了一些问题,当文本太大,无法容纳一个“行”,而不是一个行(就像sifr2提供的带有文本"Vanden,Eaves夫人在巴斯克维尔结婚“的演示html文件中所发生的那样),它只会将sifr替换的文本缩小到更小的字体大小,以适应空格,奇怪的是,我没有使用这个css标签的大小。
“问题”选择器是h2文本,位于class="bloq“DIV中。
<div class="bloq">
<h2 class="text">text that drives me crazy 'cos it's soooo long</h2>
</div>,这是代码:
SIFR代码:
// This is the preferred "named argument" syntax
sIFR.replaceElement(named({sSelector:"h2.text", sFlashSrc:swfurl, sColor:"#7d2384", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingRight:0, nPaddingBottom:0, nPaddingLeft:0, sWmode:"transparent" }));SIFR.screen CSS代码:
.sIFR-hasFlash h2.text {
visibility: hidden;
letter-spacing: -9px;
font-size: 14px;
}mystyle CSS代码:
h2{
height: 62px;
background-repeat: no-repeat;
background-position: bottom left;
text-indent: -9999px;
padding: 0px;
display: block;
}
h2.text{
padding-left: 10px;
padding-right: 10px;
font-weight: bold;
font-size: 12px;
color: #7d2384;
margin-bottom: 10px;
text-indent: 0px;
height: auto;
}
.bloq{padding-left: 11px; float: left; width: 300px;}预先谢谢.
PS。另外,我注意到在最新的Safari版本中,sBgColor:"#FFFFFF“属性有一些问题,sColor:"#7d2384”运行良好,但是sBgColor总是变成绿色。
浏览器太多了..太多版本:P
发布于 2009-09-10 08:42:56
sIFR 3没有这个问题。
https://stackoverflow.com/questions/1393187
复制相似问题