久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

JQuery 可滾動文本

JQuery Scrollable Text(JQuery 可滾動文本)
本文介紹了JQuery 可滾動文本的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在尋找一個將文本綁定到可滾動框內的 jquery 插件.大多數滾動插件都在轉換瀏覽器滾動條,但我想保持原樣并且可用.這只是為了在小空間中包含大量文本.

I'm searching for a jquery plugin that will bound text inside a scrollable box. Most of the scroll plugins are converting the browser scroll bar but I want to keep that as it is and usuable. This is just to contain a large amount of text in a small space.

就像這樣 頁面 在最底部它們包含一個一個小的可滾動框中的大量文本.我試圖實現這個插件,但我對 JQuery 有點陌生,所以微不足道的指令不足以讓我站起來.如果我可以使用這個插件來做我想做的事,這段代碼對嗎?:

It's like this page where at the very bottom they are containing a large amount of text in a small scrollable box. I tried to implement this plugin but I'm kinda new to JQuery so the meager instructions weren't enough for me to get off my feet. If I can use this plugin to do what I want, is this code right?:

<script>
$(document).ready(function(e) {
    $(".Information").uscrollbar();
});
</script>

<div id="Hotel" class="Information">
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
        <p>blah</p>
    </div>

推薦答案

你真的不需要 jQuery.只是一些 CSS.

You really don't need jQuery for this. Just some CSS.

.Information{
height:100px;
overflow:auto;
}

如果您確實需要此插件,請確保您正確引用了 jQuery 以及指向插件 js 文件的鏈接.

If you have a genuine need for this plugin then make sure you're referencing jQuery correctly and the link to the plugin js file.

如果您在瀏覽器中運行該頁面,您是否會在控制臺窗口中看到任何內容.任何錯誤.

If you run the page in your browser do you get anything in the console window. Any errors.

添加了 JSFiddle

還要確保您引用了所需的資產:

Also be sure you're referencing the required assets:

jquery.uscrollbar.js
jquery.uscrollbar.css

這篇關于JQuery 可滾動文本的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

jQuery/JavaScript Library for avatar creation?(用于創建頭像的 jQuery/JavaScript 庫?)
How to do following mask input problem?(如何做以下掩碼輸入問題?)
Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 設置值/標簽的問題)
how to unit-test private methods in jquery plugins?(如何對 jquery 插件中的私有方法進行單元測試?)
stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 為垂直滾動網站配置偏移量/對齊元素?)
jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽輸入插件.當文本框獲得焦點時選擇所有內容)
主站蜘蛛池模板: 国产精品美女久久久久aⅴ国产馆 | 亚洲色图插插插 | 日韩视频在线观看一区二区 | 欧美另类视频 | 99久久99热这里只有精品 | 中文字幕在线第一页 | 久久国产精品无码网站 | 久久99网| 亚洲天堂中文字幕 | 99久久99热这里只有精品 | av入口| 亚洲午夜三级 | 欧美成人一区二区 | 国产一区| 91在线一区二区 | 人人九九精 | 国产精品一区二区精品 | 一区二区三区亚洲 | 国产福利在线 | 欧美一级二级三级视频 | 水蜜桃亚洲一二三四在线 | 国产精品1区2区 | 国产美女高潮 | 一级日批片| 在线观看涩涩视频 | 欧美日韩中文字幕在线 | 亚洲色图综合 | av网站免费 | 自拍偷拍精品 | 一级片视频免费 | 国产成人在线一区二区 | 久久久一区二区三区四区 | 每日更新av | 亚洲精品中文字幕 | 国产精品欧美精品 | 日韩欧美黄色 | 久久久久久久久久久一区二区 | 久久久久久久久国产成人免费 | 91国内外精品自在线播放 | av网站免费观看 | 欧美一级欧美三级在线观看 |