Meteor creating a scrollable div

2019-09-13 02:12发布

Hey guys new day new question ;) im trying to make a scrollable div should be no problem but it does not work ;( in the div i am outputting names of my database and when the space is too small you should scroll it but the scrollbar doesnt appear

my html:

<template name="friendsScroll">
  <div class="CSSFreundeScrollListe">
    <ul>
      {{#each friend}}
        <li>{{Name}}</li>
      {{/each}}
    </ul>
  </div>
</template> 

my css

.CSSFreundeScrollListe{
background: #00BFFF;
height: 150px;
overflow: scroll; (or auto both "should" work;))
width: 200px;
border: 1px solid #000;
padding: 10px;
}

javascript is working fine thats what i getenter image description here

hope you can help me thanks ;)

1条回答
Melony?
2楼-- · 2019-09-13 02:34

Ninja Pixel helped me to find the problem in the comment section and the problem was that the css was not updating then i changed the background color in the css and it got updated and the scrollbars appeared too thanks again ninjaPixel ;)

查看更多
登录 后发表回答