// news.css
a.link { color:#006699 ;text-decoration:underline;}
a.visited {color:#cc0000;text-decoration:underline;}
a.hover {color:#006699;text-decoration:underline;}
#news{ //层通用代码
margin:0px ;padding:0px ;
border-top: 0px ;
border-right: 0px;
border-bottom: 1px #C0C0C0 dotted ;//#C0C0C0是银色
border-left: 0px ;
font-size:14px ;
text-align:center ;
text-height:6px ;
color:#000000 ;
width=200;
}
#new ul{type:none; border=0px ; margin:0px ;padding:0px ;}
#news ul li{ margin:0px ; padding:0px ;}
#news ul li a.link{font-size:16px ;color:#006699 ;text-
decoration:underline;}
#news ul li a.visited {font-size:16px ;color:#cc0000;text-
decoration:underline;}
#news ul li a.hover {font-size:16px ;color:#006699;text-
decoration:underline;}
//page.php
<?
//新闻列表分页显示php
include"news/include/conn.inc.php";
include_once "news/include/zijie.php";
$sql="select * from new_f where kind='dekt' order by id DESC limit 0,10";
$result=mysql_query($sql);
while($res=mysql_fetch_array($result)){
$p="...";
$title=zijie($res["title"],24,$p);
echo "
<div id='news'>
<ul style='list-style-type:none'>
<li>
<a href='http://mail.yahoo.com/config/login?/news/detail.php?id=".base64_encode($res["id"])."&kind=".base64_encode($res["kind"])."'
target='_blank'
title='标题:".$res["title"]."(发布时间:".$res["addtime"].")'>".$title."</a>
</ul>
</div>" ;
}
mysql_free_result($result);
?>