Meteor creating a scrollable div

2019-09-13 02:42发布

问题:

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 get

hope you can help me thanks ;)

回答1:

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 ;)