Jssor Slider(横幅滑块):如何以两行显示文本

时间:2014-10-01 14:26:56

标签: slider

我需要在两行上显示Text Slide Banner Jsson。当我插入大于它未显示的框大小的文本时,我会在下面的行中显示aparececi,即在两行显示文本。

https://www.flickr.com/photos/robisonweb/15388049446/

我设法定位文本框,无法在两行显示文本。

https://www.flickr.com/photos/robisonweb/15410760422/

我很感激帮助。

[]'罗宾逊

1 个答案:

答案 0 :(得分:0)

请将行高从45px更改为22px,并将字体大小从20px更改为16px; 也就是说,替换

<thumbnailtemplate style="font-family: verdana; font-weight: normal; POSITION: absolute; WIDTH: 100%; HEIGHT: 100%; TOP: 0; LEFT: 0; color:#fff; line-height: 45px; font-size:20px; padding-left:10px;"></thumbnailtemplate>

<thumbnailtemplate style="font-family: verdana; font-weight: normal; POSITION: absolute; WIDTH: 100%; HEIGHT: 100%; TOP: 0; LEFT: 0; color:#fff; line-height: 22px; font-size:16px; padding-left:10px;"></thumbnailtemplate>

然后您可以定义2行文本缩略图,如下所示

<div u="thumb">Do you notice it is draggable by mouse/finger?<br />Second line</div>