您的位置:首页 > Web前端 > CSS

css实现内部滚动

2016-07-08 16:47 369 查看
html页面
<div class="container">
<figure class="figcaption">
<img src="/minimg/index5.jpg" class="img-full" />
</figure>
<p class="text-p">这是一张测试图片</p>
</div>

css样式
.container{
max-width: 64rem;
margin: 0 auto;
}
.figcaption{
width: 100%;
height: 8rem;
overflow: hidden;
overflow-y: visible;
}
.text-p{
height: 20rem;
line-height: 20rem;
text-align: center;
width: 100%;
background: deepskyblue;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: