JScroll Strange Text Wrapping

时间:2015-01-05 23:16:16

标签: javascript html css google-chrome

我正在使用JScroll在更大的页面中创建一个小的可滚动部分,并且由于某种原因,文本看起来很奇怪

种类 喜欢 这个 为 没有任何意义 在

JS

    </script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.jscrollpane.min.js"></script>
<script>
   $(function()
            {
                $('.scroll-pane').jScrollPane();
            });
</script>

<script type="text/javascript" src="jquery.mousewheel.js"></script>

CSS

<link href="jquery.jscrollpane.css" media="all" rel="stylesheet" type="text/css" />

.scroll-pane
            {

                height: 200px;
                overflow: auto;
            text-align: centre;

            }

HTML

<section>
<div id="news">
<div class="scroll-pane"><pmain> <ins>Leeds Lieder Day of Song</ins><br />
<br />
I have recently been selected as the Sheffield Univesrity Representative at the Leeds Lieder organised &quot;Day Of Song&quot;. I&quot;m really looking forward to this opportunity to collaborate and create so hopefully great new work! </pmain><br />
<br />
<pmain> <ins><i>Phobophobia</i> premiered by Sheffield University Symphony Orchestra!</ins><br />
<br />
My first orchestral work <i>Phobophobia</i> was premiered by Sheffield University Symphony Orchestra on the 14th of December 2014, it was a great concert also featuring student co nductor Dom Hartley who performed John Adam&#39;s <i> Chairman Dances </i> and student soloist Emma Dowson who played the Pakhmutova <i>Concerto for Trumpet and Orchestra</i> </pmain></div>
</div>
</section>

如果您想查看整个来源,整页是here

先谢谢你,我是一个初学者,但我已经做到了这一点,现在已经停留在我的最后一点了!

更新它在firefox中工作正常,所以可能是Chrome问题

0 个答案:

没有答案