Meteor创建一个可滚动的div [英] Meteor creating a scrollable div

查看:121
本文介绍了Meteor创建一个可滚动的div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿家伙新的一天新的问题;)我想让一个可滚动的div应该没有问题,但它不工作;(在我输出我的数据库的名称,当空间太小,你应该滚动它但不显示滚动条

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

我的html:

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

我的css

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

javascript工作正常,我得到

javascript is working fine thats what i get

希望您能帮助我。)

推荐答案

p> Ninja Pixel帮助我在评论部分找到问题,问题是,CSS不更新,然后我改变了CSS中的背景颜色,它得到更新,滚动条出现太感谢了ninjaPixel;)

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

这篇关于Meteor创建一个可滚动的div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆