/*
 *创建人:李要南
 */
*
{
    margin: 0; /*把默认值都设为0*/
    padding: 0;
    border-width: 0;
}
body
{
    font-size: 14px; /*文本字体大小*/
}
a:link, a:visited
{
    /*鼠标未移上去和访问后的超链接样式*/
    color: #000; /*文字为黑色*/
    text-decoration: none; /*无下划线*/
}
a:hover
{
    /*鼠标移到超链接上的样式*/
    color: #00f; /*文字为黑色*/
    text-decoration: underline; /*有下划线*/
}
/*
 *顶部样式
 */
#top img
{
    /*顶部图片样式*/
    float: left; /*向左漂移*/
}
#top
{
    width: 760px; /*宽*/
    height: 120px; /*高*/
    margin: 10px auto 10px auto; /*居中*/
}
/*
 *搜索部分样式
 */
#search
{
    /*像素边框红色*/
    width: 760px; /*宽*/
    height: 27px; /*高*/
    margin: 10px auto 10px auto; /*居中*/
}
.txtKey
{
    width: 410px; /*宽*/
    height: 27px; /*高*/
    border: 1px solid #9aa1a9; /*边框*/
    background-color: #7baeff; /*背景色*/
    font-size: 16px; /*文字大小*/
    line-height: 27px; /*行间距*/
}
.searchbtn
{
    background-image:url("../image/search.gif");
    background-repeat:no-repeat;
    width:100px;
    height:30px;
    border-style:none;
    background-color:#fff;
   
}
input
{
    vertical-align: middle; /*元素文本的垂直居中*/
}
/*
 *主要部分样式
 */
#main
{
    /*像素边框红色*/
    width: 760px; /*宽*/
    margin: 10px auto 10px auto; /*居中*/
}
/*
 *尾部样式
 */
#footer
{
    width: 760px; /*宽*/
    margin: 10px auto 10px auto; /*居中*/
    clear: both; /*清空漂浮*/
    text-align: center; /*元素文本的水平居中*/
    border-top: 1px solid #D6D7D6; /*顶部边框*/
    padding-top: 10px; /*距顶部的距离*/
}
/*公共样式*/
.commonfrm
{
    border: 1px solid #dedfee; /*边框*/ /*width: 560px;/*宽*/ /*margin: 10px auto 10px auto; /*居中*/
}
.commonfrm table
{
    width: 100%; /*宽*/
    text-align: center; /*元素文本的水平居中*/
    border-collapse: collapse; /*表格框细线边框*/
}
.commonfrm table th, .commonfrm table td
{
    padding: 4px 10px; /*元素的边缘空白*/
}
.commonfrm h4
{
    height: 25px; /*高*/
    color: #fff; /*文字颜色*/
    background-color: #7baeff; /*背景色*/
    padding: 3px 10px; /*元素的边缘空白*/
}
.commonfrm .th_category
{
    width: 100px; /*宽*/
}
.commonfrm .th_time
{
    width: 140px; /*宽*/
}
/*table中的超链接样式*/
.commonfrm .td_category a:link, .commonfrm .td_category a:visited
{
    color: #525152; /*文字颜色*/
    text-decoration: none; /*无下划线*/
}
.commonfrm .td_category a:hover
{
    color: #339999; /*文字颜色*/
    text-decoration: none; /*无下划线*/
}
.commonfrm .td_time
{
    color: #525152; /*文字颜色*/
    font-size: 12px; /*文字大小*/
}
/*类别样式*/
#category
{
    width: 180px; /*宽*/
    margin-right: 5px; /*元素边缘的边距*/
    float: left; /*向左漂移*/
}
ul li
{
    list-style-type: none; /*列表向的项目符号样式*/
}
li
{
    text-align: center; /*元素文本水平对齐*/
    margin: 15px; /*元素边缘的边距*/
}
/*列表中的超链接样式*/
li a:link, li a:visited
{
    color: #00f; /*文字颜色*/
    text-decoration: underline; /*元素文本字体的修饰*/
    font-weight: bold; /*元素文本字体加粗*/
}
li a:hover
{
    color: #f00; /*文字颜色*/
}
/*最新新闻*/
#newnews
{
    width: 560px; /*宽*/
    margin-left: 5px; /*元素边缘的边距*/
    margin-bottom: 10px; /*元素边缘的边距*/
    float: right; /*向右漂移*/
}
/*最热新闻*/
#hotnews
{
    width: 560px; /*宽*/
    margin-left: 5px; /*元素边缘的边距*/
    float: right; /*向右漂移*/
}
/*新闻列表*/
#newslist
{
    width: 560px; /*宽*/
    margin-left: 5px; /*元素边缘的边距*/
    float: right; /*向右漂移*/
}
/*搜索结果框架*/
#searchres
{
    width: 760px; /*宽*/ /*margin-bottom: 10px;/*元素边缘的边距*/
}
/*新闻内容*/
#newscontent
{
    width: 760px; /*宽*/
}
/*新闻评论*/
#newsreplay
{
    width: 760px; /*宽*/
}
#newscontent p, .replay p
{
    margin: 20px 20px; /*元素边缘的边距*/
    letter-spacing: 1.3px; /*字符间距*/
}
#newscontent .con, .replay .con
{
    text-indent: 2em; /*文本缩进*/
    line-height: 20px; /*行间距*/
}
#newscontent .con_time, .replay .replay_info
{
    float: right; /*向右漂移*/
    font-size: 12px; /*文字大小*/
    color: #888; /*文字颜色*/
}
#newscontent a:link, #newscontent a:visited
{
    width: 70px; /*宽*/
    height: 25px; /*高*/
    background-color: #eff7ff; /*背景色*/
    border: 1px solid #428eff; /*边框*/
    font-size: 12px; /*文字大小*/
    text-align: center; /*水平对齐方式*/
    line-height: 25px; /*行间距*/
    color: #0059db; /*文字颜色*/
    text-decoration: none; /*无下划线*/
    margin-left: 20px; /*元素边缘的边距*/
    display: block; /*设置元素的模式为块级元素*/
}
.replay
{
    margin-bottom: 10px; /*元素边缘的边距*/
}
.replay hr
{
    width: 650px; /*宽*/
    clear: right; /*清空漂浮*/
}
/*添加评论*/
.addcoment
{
    width: 760px; /*宽*/
    margin-bottom: 20px; /*元素边缘的边距*/
    text-align: center; /*文字居中*/
}
.addcoment .comment_con
{
    width: 600px; /*宽*/
    height: 250px; /*高*/
    margin: 5px; /*元素边缘的边距*/
    border: 1px solid #7baeff; /*边框*/
}
.addcoment .txtcode
{
    width: 50px; /*宽*/
    border: 1px solid #7baeff; /*边框*/
}

 

 posted on 2009-03-11 17:06  李要南  阅读(329)  评论(0编辑  收藏  举报