Home > Thiết kế Web > css tạo scroll chỉ hiển thị scroll theo chiều cao (css overflow only for height)

css tạo scroll chỉ hiển thị scroll theo chiều cao (css overflow only for height)

 

html tag:

<div style=”max-height:250px;overflow:auto; -ms-overflow-y: hidden; scrollbar-base-color:#e8f1f5″>

Noi dung
……

</div>

 

IE 6, 7:
overflow: auto;
overflow-y: hidden;

IE 8:
-ms-overflow-y: hidden;

scrollbar-base-color:#e8f1f5:  //chỉ áp dụng cho trình duyệt IE

 

only scroll bar height

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: