2007-03-29

技巧文章:常用CSS修改实际操作技巧

来源: 本站收集整理 作者:佚名 评论 0 条
 
1.--栏目文章列表内容间隔颜色的定义1--

1): 方法1,表格虚线定义:

进入后台,打开网站风格治理,按ctrl F查找 .listbg2 找到:
.listbg /* --栏目文章列表内容间隔颜色的定义1-- */
{
background:#ffffff;
}
.listbg2 /* --栏目文章列表内容间隔颜色的定义2-- */
{
background:#f7f7f7;
}

修改为:

.listbg /* --栏目文章列表内容间隔颜色的定义1-- */
{
background:url(Skin/blue/xxx.gif);height: 24;font-size:9pt;color: #000000;
}
.listbg2 /* --栏目文章列表内容间隔颜色的定义2-- */
{
background:url(Skin/blue/xxx.gif);height: 24;font-size:9pt;color: #000000;
}

注释:xxx.gif为虚线图片大小为3X24 px 与 height: 24 必须对称。color: #000000; 字体颜色。


事例图片1:



2): 方法2,标签来定义(需要手动把代码加到后台风格里)

自己定义连接的文字颜色与行高等参数。

{$GetArticleList(1,0,True,0,True,6,False,False,"",0,3,2,16,0,False,3,True,False,0,False,False,False,True,True,False,1,1,aaa,bbb,ccc)}

例子:
* 自定义列表标签链接文字颜色定义 */
a.aaa{text-decoration: none;}
a.aaa:link {color: 000000;FONT-SIZE: 9pt;}
a.aaa:visited {color: 000000;FONT-SIZE: 9pt;}
a.aaa:hover{color: ff6600;FONT-SIZE: 9pt;}
a.aaa:active {color: 000000;FONT-SIZE: 9pt;}
.bbb /* --自定义列表标签中偶数表格行背景颜色定义-- */
{
background:url(Skin/blue/hengxian.gif);height: 24;font-size:9pt;color: #000000;
}

.ccc /* --自定义列表标签中偶数表格行背景颜色定义-- */
{
background:url(Skin/blue/hengxian.gif);height: 24;font-size:9pt;color: #0000ff;
}

注释基本同上。

事例图片2:


共3页: 上一页 1 [2] [3] 下一页
(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:彻底弄懂CSS盒子模式之二  
下一篇:web标准化设计:常用的CSS命名规则
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号