2017-01-14 14 views
4

オーバーフローコンテンツをスクロール可能なdivを作成しましたが、スクロールして非表示にしたいのですが、divはスクロール可能です。div内のスクロールバーを非表示にする方法

.description 
{ 
    height: 150px; 
    overflow: scroll; 
} 

<div class="description"> 
    <h4>Description</h4> 
    <p>After a series of deadly discoveries, Bruce Wayne has learned that the Court of Owls is real � and a deadly threat out to control Gotham City! Unleashing their deadly assassins known as the Talons, Batman must stop the insidious Court of Owls before they claim the city for their own. In doing so, The Dark Knight will uncover dark secrets � not just about the city he�s sworn to protect, but about the history of the Wayne family.After a series of deadly discoveries, Bruce Wayne has learned that the Court of Owls is real � and a deadly threat out to control Gotham City! Unleashing their deadly assassins known as the Talons, Batman must stop the insidious Court of Owls before they claim the city for their own. In doing so, The Dark Knight will uncover dark secrets � not just about the city he�s sworn to protect, but about the history of the Wayne family.After a series of deadly discoveries, Bruce Wayne has learned that the Court of Owls is real � and a deadly threat out to control Gotham City! Unleashing their deadly assassins known as the Talons, Batman must stop the insidious Court of Owls before they claim the city for their own. In doing so, The Dark Knight will uncover dark secrets � not just about the city he�s sworn to protect, but about the history of the Wayne family.</p> 
</div> 
+1

あなたはこのhttps://jsfiddle.net/Lg0wyt9u/1438/のようにそれを行うことができ、私は、Mozilla上でそれをテスト –

答えて

8

スクロールバーを非表示にするには、display:noneを適用します。以下のCSSを試してください。

CSS:

::-webkit-scrollbar { 
    display: none; 
} 

JSFiddle:https://jsfiddle.net/nikdtu/arn77mt1/

関連する問題