Jump to content
  • 0

Полоса прокрутки


psywalker
 Share

Question

Простите пожалуста,а как сделать такую же полосу прокрутки,как на картнке справа?

ПРичём дело в том,что у меня вертикальная длина таблицы всего 300px

5156.jpg

Edited by psywalker
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

А в чем сложности? Используй следующий код. Работает только не для всех браузеров.

<style type="text/css">
body {
scrollbar-face-color: #3333CC;
scrollbar-track-color: #330099;
scrollbar-darkshadow-color: #00CC66;
scrollbar-shadow-color: #333399;
scrollbar-highlight-color: #FF3333;
scrollbar-base-color: #FF0000;
scrollbar-3dlight-color: #FFCC33;
scrollbar-arrow-color: #66FFCC;
background-color: #000000;
}
</style>

Link to comment
Share on other sites

  • 0

извините влад,просто дело в том,что во первых Это только для Самой странице в целом,а мне какбы нада просто в Отдельной ячейке,вон той,что на картинке...Где ширина:130px ,а длина:300px

Link to comment
Share on other sites

  • 0

<div style="width:100px; height:200px; overflow: auto; scrollbar-face-color: #3333CC;
scrollbar-track-color: #330099;
scrollbar-darkshadow-color: #00CC66;
scrollbar-shadow-color: #333399;
scrollbar-highlight-color: #FF3333;
scrollbar-base-color: #FF0000;
scrollbar-3dlight-color: #FFCC33;
scrollbar-arrow-color: #66FFCC;
background-color: #ffffff;">
sdfsdgsdfsd sdfs a sfsdf sdfsd fsd fsd gsafas f sdfasd fas fs dfsd s sdf sd sdfa sfs dfas f as sfsdfsdgsdfsd sdfs a sfsdf sdfsd fsd fsd gsafas f sdfasd fas fs dfsd s sdf sd sdfa sfs dfas f as sf
</div>

как то так

Edited by Джин
Link to comment
Share on other sites

  • 0

Dimitry Wolotko а напишите пожалуйста код :)

Кстати самый главный момент: Как полоса будет прокручиватся,если текст не уходит вниз,за её пределы,мало того,она вообще не появиться...

Мне нада прям один в один,как на картинке,чтобы просто полоска с маленьким скрулом была СПРАВА,(именно по ВЕРТИКАЛИ)это возможно?

Edited by psywalker
Link to comment
Share on other sites

  • 0

уж если столь важен скрол, то подобные решения реализуются во Flash.

а вообще, имхо, красить скролл - это дико.

юзер, он и только он решает какой он хочет иметь вид, устанавливая соответствующий скин.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy