html列表可滚动
2016-12-28 17:38
309 查看
<style>
body{
background:#f0f0f0;
}
.img_celebrity_avatar{
width:80px;
height:80px;
vertical-align:middle;
float:left;
#border:1px solid green;
}
.div_celebrity_row{
width:300px;
height:80px;
margin:8px;
background:#eee;
border:3px solid white;
box-shadow: 5px 5px 5px #888888;
}
.div_celebrity_list{
width:350px;
height:300px;
overflow-y:scroll;
padding:4px;
border:2px dashed #aaa;
}
.ul_celebrity_info{
margin:0;padding:0;
#border:1px solid red;
list-style:none;
}
.div_celebrity_info{
float:left;
width:150px;
margin-top:25px;
margin-left:25px;
#border:1px solid red;
}
</style>
<script src="jquery-1.4.2.min.js"></script>
<div class="div_celebrity_list">
<div class='div_celebrity_row'>
<div style='float'>
<img class='img_celebrity_avatar' src='http://pic62.nipic.com/file/20150329/2531170_103550104000_2.jpg'/>
</div>
<div class='div_celebrity_info'>
<ul class='ul_celebrity_info'>
<li>天气</li>
<li>22</li>
</ul>
</div>
</div>
<div class='div_celebrity_row'>
<div style='float' > <img class='img_celebrity_avatar' src='http://131225.vip602.cn/news/20151207/540228afc07f45b389ebdf01edc5c517.png'/> </div>
<div class='div_celebrity_info'>
<ul class='ul_celebrity_info'>
<li>美食 </li>
<li>33 </li>
</ul>
</div>
</div>
<div class='div_celebrity_row'>
<div style='float' > <img class='img_celebrity_avatar' src='http://pic.58pic.com/10/81/55/53bOOOPIC43.jpg'/> </div>
<div class='div_celebrity_info'>
<ul class='ul_celebrity_info'>
<li>运动 </li>
<li>444 </li>
</ul>
</div>
</div>
<div class='div_celebrity_row'>
<div style='float' > <img class='img_celebrity_avatar' src='http://img.zcool.cn/community/016cd3565d430232f8759647cebcd2.png'/> </div>
<div class='div_celebrity_info'>
<ul class='ul_celebrity_info'>
<li>宠物 </li>
<li>444 </li>
</ul>
</div>
</div>
</div>
<script>
</script>
相关文章推荐
- HTML页面-div层滚动列表-写法
- html+css+javascript实现列表循环滚动示例代码
- struts2中,绑定下拉列表的值+Html滚动文字
- (教学思路 HTML之三)滚动字幕和建立使用列表
- (教学思路 HTML之三)滚动字幕和建立使用列表
- 从零开始学Web之HTML(二)标签、超链接、特殊符号、列表、音乐、滚动、head等
- HTML实现左侧内容可滚动,右侧列表固定布局
- js中对arry数组的各种操作小结 瀑布流AJAX无刷新加载数据列表--当页面滚动到Id时再继续加载数据 web前端url传递值 js加密解密 HTML中让表单input等文本框为只读不可编辑的方法 js监听用户的键盘敲击事件,兼容各大主流浏览器 HTML特殊字符
- HTML Table 列表滚动
- html+css+javascript实现列表循环滚动
- html滚动列表、表格、文字等等
- HTML 列表详解
- Python---对html文件内容进行搜索取出特定URL地址字符串,保存成列表,并使用每个url下载图片,并保存到硬盘上,使用正则re
- HTML&CSS基础学习笔记14—有序列表及列表嵌套
- HTML 滚动效果
- HTMLDOM 滚动 可见高度,总高度(offsetHeight,scrollHeight)
- html 下拉列表的点击事件
- 【html】【18】高级篇--下拉列表[竖向手风琴]
- html 循环输出 select 下拉列表选项
- mui框架开发app:列表滚动到顶部