第一次分享,让大家踩踩
- @charset "utf-8";
- *{padding:0;margin:0;}
- .page {
- font-size: 14px;
- text-align:center
- }
- .page ul{list-style-type:none;display:table;margin-left:auto;margin-right:auto}
- .page ul li{min-width:20px;padding:5px;margin-left:3px;border:1px solid #CCC;text-align:center;float:left;*float:none;*display:inline;*zoom:1;}
- .page .select{font-weight:bold;color:#000;font-size:14px;background-color:#F5F5F5;}
- .page li a{text-decoration:none;color:#333}
- .page .gray{color:#808080}
-
-
-
class page{
- public $pagesize;
- public $pagecount;
- public $currentpage;
- public $pageurl;
- public $totalpage;
-
- function __construct($pagesize=15,$pagecount=0,$currentpage=1,$pageurl){
- $this->pagesize = $pagesize;
- $this->pagecount = $pagecount;
- $this->currentpage = $currentpage;
- $this->pageurl = $pageurl;
- $this->totalpage = ceil($this->pagecount / $this->pagesize);
- }
-
- function showpage(){
- $pagelink = "";
-
- $pagelink .= "";
- return $pagelink;
- }
-
- }
-
-
- ?>
复制代码
|