如何在Mediawiki导航侧栏和页脚中更改字体大小和颜色? [英] How to change font size and colour in Mediawiki navigation sidebar and footer?

查看:2173
本文介绍了如何在Mediawiki导航侧栏和页脚中更改字体大小和颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站是使用Mediawiki开发的,我有以下问题:



如何在导航边栏和页脚中更改字体大小和字体颜色? p>

我使用的矢量皮肤,很难找到正确的方法来进行这些更改。

解决方案

导航:



在您的css中搜索

  div#mw-panel div.portal div.body ul li a {
color:#0645AD;
}
div#mw-panel div.portal div.body ul li a:visited {
color:#0B0080;
}

并将其更改为

  div#mw-panel div.portal div.body ul li a {
font-size:16px;
color:#008000;
}
div#mw-panel div.portal div.body ul li a:visited {
颜色:#A0600B;
}

使用此选项, p>

  div#mw-panel div.portal div.body ul li a,a:visited {
font-size:16px ;
color:#008000;
}

或简单地用此代码添加新行

 #mw-panel .portal a,#mw-panel .portal a:visited {
font-size:16px!important;
color:red!important;
}

对于页脚



使用此代码添加新行

  div#footer ul li {
字体-size:16px!important;
color:black!important;
}

div#footer ul li a,div#footer ul li a:visited {
color:orange!important;
}

}


My website was developed using Mediawiki and I have the following question:

How do I change the font size and font colour in the navigation sidebar and footer?

I am using the vector skin and having difficulties finding the correct way to make these changes.

解决方案

For the navigation:

search in your css to

div#mw-panel div.portal div.body ul li a {
    color: #0645AD;
}
div#mw-panel div.portal div.body ul li a:visited {
    color: #0B0080;
}

and change it to

div#mw-panel div.portal div.body ul li a {
    font-size:16px;
    color: #008000;
}
div#mw-panel div.portal div.body ul li a:visited {
    color: #A0600B;
}

use this when you want the same color for a link and visited link

div#mw-panel div.portal div.body ul li a, a:visited {
    font-size:16px;
    color: #008000;
}

or simple add a new line with this code

#mw-panel .portal a, #mw-panel .portal a:visited {
    font-size:16px!important;
    color: red!important;
}

For the Footer

add new line with this code

div#footer ul li{
    font-size:16px!important;
    color:black!important;
}

div#footer ul li a,div#footer ul li a:visited {
    color: orange!important;
}

}

这篇关于如何在Mediawiki导航侧栏和页脚中更改字体大小和颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆