panos

\\让共青网与国际接轨,用W3C标准中DIV来布局,彻底摒弃TABLE,代码测试 "基本实现"

// 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);
?>

posted on 2006-05-15 02:17 mr.panos 阅读(246) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(1)

随笔分类

随笔档案

中文百科全书

搜索

最新评论

阅读排行榜

评论排行榜