css新闻趣图.html
来源:互联网 发布:苹果电脑重装mac系统 编辑:程序博客网 时间:2024/05/16 05:42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style type="text/css">
* { /*清空默认的内外边距 css几乎必须要写的*/
margin: 0;
padding: 0;
}
ul {
list-style: none; /*取消列表自带的小点 默认的样式*/
}
.search {
width: 238px;
height: 294px;
border: 1px solid #D9E0EE;
border-top: 3px solid #FF8400; /*这句话一定要写下边*/
margin: 100px;
}
.search h3 {
height: 35px;
border-bottom: 1px solid #D9E0EE;
font-size: 16px;
font-weight: normal; /*不加粗*/
line-height: 35px; /*垂直居中*/
padding-left: 12px; /*h3没给宽度 所以不会影响盒子大小*/
}
.search img {
margin: 7px 0 0 8px; /*上右下左*/
}
.search ul li a {
font-size: 12px;
color: #666;
text-decoration: none; /*取消下划线*/
}
.search ul {
margin-left: 8px;
}
.search ul li{
padding-left: 10px;
height: 26px;
line-height: 26px;
background: url(dian.png) no-repeat left center; /*背景设置*/
}
.search ul li a:hover {
text-decoration: underline; /*下划线*/
color: #FF8400;
}
</style>
</head>
<body>
<div class="search">
<h3>搜索趣图</h3>
<img src="xinwen.jpg" height="160" width="218" alt="#" />
<ul>
<li><a href="#">中国再次登顶</a></li>
<li><a href="#">中国工程院停止孟伟院士资格</a></li>
<li><a href="#">新政出台车贷将有重大变化</a></li>
</ul>
</div>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<style type="text/css">
* { /*清空默认的内外边距 css几乎必须要写的*/
margin: 0;
padding: 0;
}
ul {
list-style: none; /*取消列表自带的小点 默认的样式*/
}
.search {
width: 238px;
height: 294px;
border: 1px solid #D9E0EE;
border-top: 3px solid #FF8400; /*这句话一定要写下边*/
margin: 100px;
}
.search h3 {
height: 35px;
border-bottom: 1px solid #D9E0EE;
font-size: 16px;
font-weight: normal; /*不加粗*/
line-height: 35px; /*垂直居中*/
padding-left: 12px; /*h3没给宽度 所以不会影响盒子大小*/
}
.search img {
margin: 7px 0 0 8px; /*上右下左*/
}
.search ul li a {
font-size: 12px;
color: #666;
text-decoration: none; /*取消下划线*/
}
.search ul {
margin-left: 8px;
}
.search ul li{
padding-left: 10px;
height: 26px;
line-height: 26px;
background: url(dian.png) no-repeat left center; /*背景设置*/
}
.search ul li a:hover {
text-decoration: underline; /*下划线*/
color: #FF8400;
}
</style>
</head>
<body>
<div class="search">
<h3>搜索趣图</h3>
<img src="xinwen.jpg" height="160" width="218" alt="#" />
<ul>
<li><a href="#">中国再次登顶</a></li>
<li><a href="#">中国工程院停止孟伟院士资格</a></li>
<li><a href="#">新政出台车贷将有重大变化</a></li>
</ul>
</div>
</body>
</html>
阅读全文
0 0
- css新闻趣图.html
- 牛腩新闻发布系统之CSS和HTML
- html+css仿百度新闻首页(上)
- html+css仿百度新闻首页(下)
- 简单新闻发布系统前台界面(html+css)
- [HTML/CSS]布局学习笔记-企业网站导新闻列表页
- CSS 新闻实例
- CSS 新闻列表实例
- html 实现滚动新闻
- 【HTML】制作新闻菜单
- 【HTML】一句话新闻
- html新闻单行滚动
- HTML仿抽屉新闻
- 【HTML+CSS】(2)CSS Sprite雪碧图
- JS+CSS图片新闻效果
- css 新闻正文样式示例
- 截取新闻html编码内容
- 路透社新闻 --- jsoup解析html
- 算法爱好者——k 数和 ? 待解决
- 【量化小讲堂-Python&Pandas系列12】诺奖得主的仓位分配算法,有效吗?
- 单位圆的面积为π,因此可以通过求单位圆面积的近似值来求π的近似值
- 第一次测试出的问题的总结
- poj2488——A Knight's Journey
- css新闻趣图.html
- ios-录音功能的简单实现
- 用户日志分析系统实战(一)
- 算法爱好者——链表排序 ? 待解决
- GitHub第三方资源库整理(Swift篇)
- 谈WDM与WDF (windows驱动开发)
- EasyARM-iMX283A NXP ARM9 Coding :)
- 717. 1-bit and 2-bit Characters
- Redis 内存淘汰机制