2014-10-30 42 views
1

這裏一個div是我的網站:http://www.stnwiki.com/wiki/需要幫助確定如何編輯MediaWiki的

上面的「身體」的標籤是什麼,我希望能夠改變,但我已經嘗試和失敗,找出其中的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(); 

回答

0

的內容該分區的造型似乎是在一個名爲load.php文件的內嵌樣式(我用谷歌Chrome瀏覽器的檢查元素)。

如果右鍵單擊選項卡並單擊檢查元素,它將打開底部的窗格。在右側窗格中將列出該元素上的所有樣式,並將其分割成若干部分,每個部分的右側會告訴您這些樣式所在的文件。如果單擊該文件名,則會將您帶到所在行這些樣式位於該文件內。

試試看!

編輯:該風格執行的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?如果是這樣,您可以使用選項卡的類名稱並重寫一些樣式。

+0

我現在試一試,謝謝! – 2014-10-30 13:50:17

+0

我已將load.php的內容添加到我的問題中 – 2014-10-30 13:51:52

+0

我編輯了我的答案。看一看。 – 2014-10-30 13:59:42