这是我的网站:http://www.stnwiki.com/wiki/
“正文”上方的选项卡是我希望能够更改的内容,但我已经尝试并未能找到它们的 css 位置..
http://prntscr.com/5198o9这是一张突出显示其中 2 个选项卡的图片。
我想可以使用 Google Chrome 浏览器的检查元素找到它,但是我不太了解如何使用它。
但是我可能完全错了!如果你们需要其他信息,请告诉我!
干杯, 奥利
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();
最佳答案
MediaWiki 通过 ResourceLoader 加载 CSS从许多来源,您不需要知道 CSS 从何而来。
您的 CSS 修改必须与 MediaWiki 代码分开。如果这是您需要进行的唯一更改,那么您可能只需要对 [[MediaWiki:Common.css]] 页面进行编辑。参见 https://www.mediawiki.org/wiki/Manual:Skin_configuration#Site-wide_CSS_modifications获取更多信息和链接。
关于javascript - 需要帮助确定如何在 mediawiki 中编辑 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26654571/