dedecms 多行标题
你这是调用了4幅图,你想第一排排3幅,还有1幅怎么排。
排版的话直接修改CSS~把宽度加宽,浮动,就可以实现了~都是很简单的CSS属性,具体的要根据你的网站来说。你可以去百度下这2个属性~一下就懂了~
宽度:width:Xpx;
浮动:float:XXX;
修改文件/include/arcarchivesclass
将以下代码
$next = (is_array($nextR) " where arcid={$nextR['id']} " : ' where 1>2 ');$pre = (is_array($preR) " where arcid={$preR['id']} " : ' where 1>2 ');
$query = "Select arcid,arctitle,arcshorttitle,arctypeid,arcismake,arcsenddate,arcarcrank,arcmoney,arcfilename,arclitpic,
ttypedir,ttypename,tnamerule,tnamerule2,tispart,tmoresite,tsiteurl,tsitepath
from `#@__archives` arc left join #@__arctype t on arctypeid=tid ";
改为如下
if($this->ChannelUnit->ChannelInfos[‘issystem‘]!=-1){$next = (is_array($nextR) " where arcid={$nextR[‘id‘]} " : ‘ where 1>2 ‘);
$pre = (is_array($preR) " where arcid={$preR[‘id‘]} " : ‘ where 1>2 ‘);
$query = "Select arcid,arctitle,arcshorttitle,arctypeid,arcismake,arcsenddate,arcarcrank,arcmoney,arcfilename,arclitpic,
ttypedir,ttypename,tnamerule,tnamerule2,tispart,tmoresite,tsiteurl,tsitepath
from `#@__archives` arc left join #@__arctype t on arctypeid=tid ";
}else{
$next = (is_array($nextR) " where arcaid={$nextR[‘id‘]} " : ‘ where 1>2 ‘);
$pre = (is_array($preR) " where arcaid={$preR[‘id‘]} " : ‘ where 1>2 ‘);
$query = "Select arcaid,arctitle,arctypeid,arcsenddate,arcarcrank,arclitpic,
ttypedir,ttypename,tnamerule,tnamerule2,tispart,tmoresite,tsiteurl,tsitepath
from `"$this->ChannelUnit->ChannelInfos[‘addtable‘]"` arc left join #@__arctype t on arctypeid=tid ";
}
介绍了织梦DEDECMS实现多行导航菜单栏的实现方法。
用PHOTOSHOP更改成你喜欢的导航栏样式。最简单偷懒的方法是打开这个然后选中底下那一段大约33象素的图,重新生成一个33象素的即可。或者稍微改下颜色什么的,随你的想象去改。同时注意更改header_hoverpng这个,颜色或样式要和上图对应。
0条评论