preg_split,div居中,没内容就没样式 出现空白

如果标题中没有 空格的话

 

XML/HTML代码
  1. //83156 TF卡识别、连接猫连接 1212023141 kpwxws   
  2. //$last_arr=preg_split("/\s+/is",$lastpost_str);  

其实可以 

 

XML/HTML代码
  1. list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'], $lastpost['author']) = is_array($lastpost_str) ? $lastpost_str : explode("\t",$lastpost_str);  

 

把一个DIV中的内容 左右居中

 

XML/HTML代码
  1. style="margin:0 auto;float:none;width:160px;"  
  2. 罗--() 11:21:47   
  3. 有个宽,它才会相对外部居中,要不它的宽实际是100%,怎么居中呢?  

 

如果一个td里面 没有内容 样式就显示错误 比如边框没有了

可以用 空格做内容 不是" ",而是" "

« 上一篇 | 下一篇 »

发表评论

评论内容 (必填):