怎樣改變新云調用文章標簽的風格|新云CMS
2024-07-09 22:55:58
供稿:網友
文章標簽如何改變風格
修改文件:inc/cls_cls_public.asp
后臺:修改“模板樣式總管理”中的“編輯CCS樣式”
步驟如下:
1.修改inc/cls_cls_public.asp
(1)查找
ArticleTopic = "<a href='" & HtmlFileUrl & "'" & LinkTarget & " title='" & Newasp.ChannelModule & "標題:" & Rs("title") & " 發布時間:" & Rs("WriteTime") & " 閱覽次數:" & Rs("AllHits") & "' class=showlist>" & sTitle & "</a>"
替換為
ArticleTopic = "<a href='" & HtmlFileUrl & "'" & LinkTarget & " title='" & Newasp.ChannelModule & "標題:" & Rs("title") & " 發布時間:" & Rs("WriteTime") & " 閱覽次數:" & Rs("AllHits") & "' class='" & ListStyle & "'>" & sTitle & "</a>"
(2)保存
2.后臺:修改“模板樣式總管理”中的“編輯CCS樣式”
編輯CCS樣式
(1)增加樣式
查找
a.showlist:hover{
font-size: 12px; text-decoration: underline; color: #FF8C40;
}
添加
a.showlistnew{
background:#DDDDDD;color: #000000;font-size: 12px; font-family: 黑體; }
a.showlistnew:hover{
font-size: 12px; text-decoration: underline; color: #00FF99; font-family: 黑體;}
a.showlistnew1{
background:#DDDDDD;color: #FF0000;font-size: 12px; font-family: 黑體; }
a.showlistnew1:hover{
font-size: 12px; text-decoration: underline; color: #00FF99; font-family: 黑體;}
a.showlistnew2{
background:#DDDDDD;color: #0000FF;font-size: 12px; font-family: 黑體; }
a.showlistnew2:hover{
font-size: 12px; text-decoration: underline; color: #00FF99; font-family: 黑體;}
這里的背景、顏色、字號、字體可按自己的喜好做相應的修改。按上面修改為文章列表調用紅藍交替。
(2)查找
.showlist1 {
background:#FFFFFF;border-bottom: #E1E1E1 1px dotted;
}
.showlist2 {
background:#F8F8F8;border-bottom: #E1E1E1 1px dotted;
}
在下面添加
.showlistnew1 {
background:#FFFFFF;border-bottom: #E1E1E1 1px dotted;
}
.showlistnew2 {
background:#F8F8F8;border-bottom: #E1E1E1 1px dotted;
}
為保持版面統一,這是引用showlist1、showlist2的樣式。
(3)保存
--------------------------------------------------------------------------------
3.調用
在文章標簽中就可以使用自己定義的樣式了。
{$ReadArticleList(1,0,0,0,10,26,0,0,1,5,1,showlistnew)}
4.更新緩存。