Meteor creating a scrollable div

安稳与你 提交于 2019-12-12 03:55:35

问题


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



来源:https://stackoverflow.com/questions/42010811/meteor-creating-a-scrollable-div

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!