这是我的网站:http://www.stnwiki.com/wiki/
'身体上方的标签'是我希望能够改变但我已经尝试并且未能找到他们的CSS的位置..
http://prntscr.com/5198o9这是一张突出显示2个标签的图片。
我认为可以使用谷歌浏览器的检查元素找到它,但我不太了解如何使用它。
然而,我可能完全错了!如果你们需要其他信息,请告诉我!
干杯, 奥利
load.php的内容
<?php
/**
* This file is the entry point for the resource loader.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* @author Roan Kattouw
* @author Trevor Parscal
*/
// Bail if PHP is too low
if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) {
// We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+
require dirname( __FILE__ ) . '/includes/PHPVersionError.php';
wfPHPVersionError( 'load.php' );
}
require __DIR__ . '/includes/WebStart.php';
wfProfileIn( 'load.php' );
// URL safety checks
if ( !$wgRequest->checkUrlExtension() ) {
return;
}
// Respond to resource loading request
$resourceLoader = new ResourceLoader();
$resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
wfProfileOut( 'load.php' );
wfLogProfilingData();
// Shut down the database. foo()->bar() syntax is not supported in PHP4, and this file
// needs to *parse* in PHP4, although we'll never get down here to worry about = vs =&
$lb = wfGetLBFactory();
$lb->shutdown();
答案 0 :(得分:1)
MediaWiki从许多来源通过ResourceLoader加载CSS,您无需知道CSS的来源。
您的CSS修改必须与MediaWiki代码分开。如果这是您需要进行的唯一更改,则可能只需要编辑[[MediaWiki:Common.css]]页面即可。有关详细信息和链接,请参阅https://www.mediawiki.org/wiki/Manual:Skin_configuration#Site-wide_CSS_modifications。
答案 1 :(得分:0)
该div的样式在名为load.php
的文件中显示为内联样式(我使用的是Google Chrome&#39的检查元素)。
如果右键单击选项卡并单击“检查元素”,它将打开底部的窗格。在右侧窗格中将列出该元素的所有样式分为几个部分,并在每个部分的右侧将告诉您这些样式所在的文件。如果单击该文件名,它将带您到该行的位置这些样式位于该文件中。
试一试!
编辑:为该样式执行的URL是http://www.stnwiki.com/wiki/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.ui.button%7Cskins.vector.styles&only=styles&skin=vector& *,但我不知道它正在加载什么css文件。我建议查看MediaWiki文档以查找。
另外,有没有办法在MediaWiki的管理面板中定义自定义CSS?如果是这样,您可以使用选项卡的类名称并覆盖某些样式。