2017-05-07 276 views
0

我需要一些幫助來替換和添加自己的Header到DualCore風格。我試圖聯繫風格的作者,但看起來他並不可用。HTML/CSS:如何在phpBB風格中添加自定義橫幅

正如你可以看到在登錄鏈接下右上方有一個小標題,但我在替換它和添加自己的標題時遇到了一些困難。

我想要替換的標題的一部分是「mainheader」,看起來像這樣"mainheader"在overal_header.html中你可以找到它,但我不知道要添加或替換什麼。我的旗幟形象是 「dep_banner.png」 寬度:900身高:145 Common.css

/* General Markup Styles 
 
---------------------------------------- */ 
 

 
* { 
 
\t /* Reset browsers default margin, padding and font sizes */ 
 
\t margin: 0; 
 
\t padding: 0; 
 
} 
 

 
html { 
 
\t font-size: 100%; 
 
\t /* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-IE browsers */ 
 
\t height: 101%; 
 
} 
 

 
body { 
 
\t /* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */ 
 
\t font-family: Verdana, Helvetica, Arial, sans-serif; 
 
\t color: #828282; 
 
\t background-color: #FFFFFF; 
 
\t /*font-size: 62.5%; \t \t \t This sets the default font size to be equivalent to 10px */ 
 
\t font-size: 10px; 
 
\t margin: 0; 
 
\t padding: 12px 0; 
 
} 
 

 
h1 { 
 
\t /* Forum name */ 
 
\t font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; 
 
\t margin-right: 200px; 
 
\t color: #FFFFFF; 
 
\t margin-top: 15px; 
 
\t font-weight: bold; 
 
\t font-size: 2em; 
 
} 
 

 
h2 { 
 
\t /* Forum header titles */ 
 
\t font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; 
 
\t font-weight: normal; 
 
\t color: #3f3f3f; 
 
\t font-size: 2em; 
 
\t margin: 0.8em 0 0.2em 0; 
 
} 
 

 
h2.solo { 
 
\t margin-bottom: 1em; 
 
} 
 

 
h3 { 
 
\t /* Sub-headers (also used as post headers, but defined later) */ 
 
\t font-family: Arial, Helvetica, sans-serif; 
 
\t font-weight: bold; 
 
\t text-transform: uppercase; 
 
\t border-bottom: 1px solid #CCCCCC; 
 
\t margin-bottom: 3px; 
 
\t padding-bottom: 2px; 
 
\t font-size: 1.05em; 
 
\t color: #989898; 
 
\t margin-top: 20px; 
 
} 
 

 
h4 { 
 
\t /* Forum and topic list titles */ 
 
\t font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Sans-serif; 
 
\t font-size: 1.3em; 
 
} 
 

 
p { 
 
\t line-height: 1.3em; 
 
\t font-size: 1.1em; 
 
\t margin-bottom: 1.5em; 
 
} 
 

 
img { 
 
\t border-width: 0; 
 
} 
 

 
hr { 
 
\t /* Also see tweaks.css */ 
 
\t border: 0 none #FFFFFF; 
 
\t border-top: 1px solid #CCCCCC; 
 
\t height: 1px; 
 
\t margin: 5px 0; 
 
\t display: block; 
 
\t clear: both; 
 
} 
 

 
hr.dashed { 
 
\t border-top: 1px dashed #CCCCCC; 
 
\t margin: 10px 0; 
 
} 
 

 
hr.divider { 
 
\t display: none; 
 
} 
 

 
p.right { 
 
\t text-align: right; 
 
} 
 

 
/* Main blocks 
 
---------------------------------------- */ 
 
#wrap { 
 
    padding: 5px 5px; 
 
    min-width: 900px; 
 
    margin: 0 auto; 
 
\t background-color: #ffffff; 
 
\t -webkit-border-radius: 3px; 
 
\t -moz-border-radius: 3px; 
 
\t border-radius: 3px; \t 
 
} 
 

 
#simple-wrap { 
 
\t padding: 6px 10px; 
 
\t background-color: #ffffff; \t 
 
} 
 

 
#page-body { 
 
\t margin: 4px 0; 
 
\t clear: both; 
 
} 
 

 
#page-footer { 
 
\t clear: both; 
 
} 
 

 
#page-footer h3 { 
 
\t margin-top: 20px; 
 
} 
 

 
#logo { 
 
\t float: left; 
 
\t width: auto; 
 
\t padding: 10px 13px 0 10px; 
 
} 
 

 
a#logo:hover { 
 
\t text-decoration: none; 
 
} 
 

 
/* Search box 
 
--------------------------------------------- */ 
 
#search-box { 
 
\t color: #FFFFFF; 
 
\t position: relative; 
 
\t margin-top: 30px; 
 
\t margin-right: 5px; 
 
\t display: block; 
 
\t float: right; 
 
\t text-align: right; 
 
\t white-space: nowrap; /* For Opera */ 
 
} 
 

 
#search-box #keywords { 
 
\t width: 95px; 
 
\t background-color: #FFF; 
 
} 
 

 
#search-box input { 
 
\t border: 1px solid #b0b0b0; 
 
} 
 

 
/* .button1 style defined later, just a few tweaks for the search button version */ 
 
#search-box input.button1 { 
 
\t padding: 1px 5px; 
 
} 
 

 
#search-box li { 
 
\t text-align: right; 
 
\t margin-top: 4px; 
 
} 
 

 
#search-box img { 
 
\t vertical-align: middle; 
 
\t margin-right: 3px; 
 
} 
 

 
/* Site description and logo */ 
 
#site-description { 
 
\t float: left; 
 
\t width: 70%; 
 
} 
 

 
#site-description h1 { 
 
\t margin-right: 0; 
 
} 
 

 
/* Round cornered boxes and backgrounds 
 
---------------------------------------- */ 
 
.headerbar { 
 
\t background: #ebebeb none repeat-x 0 0; 
 
\t color: #FFFFFF; 
 
\t margin-bottom: 4px; 
 
\t padding: 0 5px; 
 
} 
 

 
.navbar { 
 
\t background-color: #ebebeb; 
 
\t padding: 0 10px; 
 
} 
 

 
.forabg { 
 
\t background: #b1b1b1 none repeat-x 0 0; 
 
\t margin-bottom: 4px; 
 
\t padding: 0 5px; 
 
\t clear: both; 
 
} 
 

 
.forumbg { 
 
\t background: #ebebeb none repeat-x 0 0; 
 
\t margin-bottom: 4px; 
 
\t padding: 0 5px; 
 
\t clear: both; 
 
} 
 

 
.panel { 
 
\t margin-bottom: 4px; 
 
\t padding: 0 10px; 
 
\t background-color: #f3f3f3; 
 
\t color: #3f3f3f; 
 
} 
 

 
.post { 
 
\t padding: 0 10px; 
 
\t margin-bottom: 4px; 
 
\t background-repeat: no-repeat; 
 
\t background-position: 100% 0; 
 
} 
 

 
.post:target .content { 
 
\t color: #000000; 
 
} 
 

 
.post:target h3 a { 
 
\t color: #000000; 
 
} 
 

 
.bg1 \t { background-color: #f7f7f7;} 
 
.bg2 \t { background-color: #f2f2f2; } 
 
.bg3 \t { background-color: #ebebeb; } 
 

 
.rowbg { 
 
\t margin: 5px 5px 2px 5px; 
 
} 
 

 
.ucprowbg { 
 
\t background-color: #e2e2e2; 
 
} 
 

 
.fieldsbg { 
 
\t /*border: 1px #DBDEE2 solid;*/ 
 
\t background-color: #eaeaea; 
 
} 
 

 
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span { 
 
\t font-size: 1px; 
 
\t line-height: 1px; 
 
\t display: block; 
 
\t height: 5px; 
 
\t background-repeat: no-repeat; 
 
} 
 

 
span.corners-top { 
 
\t background-image: none; 
 
\t background-position: 0 0; 
 
\t margin: 0 -5px; 
 
} 
 

 
span.corners-top span { 
 
\t background-image: none; 
 
\t background-position: 100% 0; 
 
} 
 

 
span.corners-bottom { 
 
\t background-image: none; 
 
\t background-position: 0 100%; 
 
\t margin: 0 -5px; 
 
\t clear: both; 
 
} 
 

 
span.corners-bottom span { 
 
\t background-image: none; 
 
\t background-position: 100% 100%; 
 
} 
 

 
.headbg span.corners-bottom { 
 
\t margin-bottom: -1px; 
 
} 
 

 
.post span.corners-top, .post span.corners-bottom, .panel span.corners-top, .panel span.corners-bottom, .navbar span.corners-top, .navbar span.corners-bottom { 
 
\t margin: 0 -10px; 
 
} 
 

 
.rules span.corners-top { 
 
\t margin: 0 -10px 5px -10px; 
 
} 
 

 
.rules span.corners-bottom { 
 
\t margin: 5px -10px 0 -10px; 
 
} 
 

 
/* Horizontal lists 
 
----------------------------------------*/ 
 
ul.linklist { 
 
\t display: block; 
 
\t margin: 0; 
 
} 
 

 
ul.linklist li { 
 
\t display: block; 
 
\t list-style-type: none; 
 
\t float: left; 
 
\t width: auto; 
 
\t margin-right: 5px; 
 
\t font-size: 1.1em; 
 
\t line-height: 2.2em; 
 
} 
 

 
ul.linklist li.rightside, p.rightside { 
 
\t float: right; 
 
\t margin-right: 0; 
 
\t margin-left: 5px; 
 
\t text-align: right; 
 
} 
 

 
ul.navlinks { 
 
\t padding-bottom: 1px; 
 
\t margin-bottom: 1px; 
 
\t border-bottom: 1px solid #FFFFFF; 
 
\t font-weight: bold; 
 
} 
 

 
ul.leftside { 
 
\t float: left; 
 
\t margin-left: 0; 
 
\t margin-right: 5px; 
 
\t text-align: left; 
 
} 
 

 
ul.rightside { 
 
\t float: right; 
 
\t margin-left: 5px; 
 
\t margin-right: -5px; 
 
\t text-align: right; 
 
} 
 

 
/* Table styles 
 
----------------------------------------*/ 
 
table.table1 { 
 
\t /* See tweaks.css */ 
 
} 
 

 
#ucp-main table.table1 { 
 
\t padding: 2px; 
 
} 
 

 
table.table1 thead th { 
 
\t font-weight: normal; 
 
\t text-transform: uppercase; 
 
\t color: #FFFFFF; 
 
\t line-height: 1.3em; 
 
\t font-size: 1em; 
 
\t padding: 7px 8px; 
 
} 
 

 
table.table1 thead th span { 
 
\t padding-left: 7px; 
 
} 
 

 
table.table1 tbody tr { 
 
\t border: 1px solid #cfcfcf; 
 
} 
 

 
table.table1 tbody tr:hover, table.table1 tbody tr.hover { 
 
\t background-color: #f6f6f6; 
 
\t color: #000; 
 
} 
 

 
table.table1 td { 
 
\t color: #6a6a6a; 
 
\t font-size: 1.1em; 
 
} 
 

 
table.table1 tbody td { 
 
\t padding: 5px; 
 
\t border-top: 1px solid #FAFAFA; 
 
} 
 

 
table.table1 tbody th { 
 
\t padding: 5px; 
 
\t border-bottom: 1px solid #000000; 
 
\t text-align: left; 
 
\t color: #333333; 
 
\t background-color: #FFFFFF; 
 
} 
 

 
/* Specific column styles */ 
 
table.table1 .name \t \t { text-align: left; } 
 
table.table1 .posts \t \t { text-align: center !important; width: 7%; } 
 
table.table1 .joined \t { text-align: left; width: 15%; } 
 
table.table1 .active \t { text-align: left; width: 15%; } 
 
table.table1 .mark \t \t { text-align: center; width: 7%; } 
 
table.table1 .info \t \t { text-align: left; width: 30%; } 
 
table.table1 .info div \t { width: 100%; white-space: normal; overflow: hidden; } 
 
table.table1 .autocol \t { line-height: 2em; white-space: nowrap; } 
 
table.table1 thead .autocol { padding-left: 1em; } 
 

 
table.table1 span.rank-img { 
 
\t float: right; 
 
\t width: auto; 
 
} 
 

 
table.info td { 
 
\t padding: 3px; 
 
} 
 

 
table.info tbody th { 
 
\t padding: 3px; 
 
\t text-align: right; 
 
\t vertical-align: top; 
 
\t color: #000000; 
 
\t font-weight: normal; 
 
} 
 

 
.forumbg table.table1 { 
 
\t margin: 0; 
 
} 
 

 
.forumbg-table > .inner { 
 
\t margin: 0 -1px; 
 
} 
 

 
.forumbg-table > .inner > span.corners-top { 
 
\t margin: 0 -4px -1px -4px; 
 
} 
 

 
.forumbg-table > .inner > span.corners-bottom { 
 
\t margin: -1px -4px 0 -4px; 
 
} 
 

 
/* Misc layout styles 
 
---------------------------------------- */ 
 
/* column[1-2] styles are containers for two column layouts 
 
    Also see tweaks.css */ 
 
.column1 { 
 
\t float: left; 
 
\t clear: left; 
 
\t width: 49%; 
 
} 
 

 
.column2 { 
 
\t float: right; 
 
\t clear: right; 
 
\t width: 49%; 
 
} 
 

 
/* General classes for placing floating blocks */ 
 
.left-box { 
 
\t float: left; 
 
\t width: auto; 
 
\t text-align: left; 
 
} 
 

 
.right-box { 
 
\t float: right; 
 
\t width: auto; 
 
\t text-align: right; 
 
} 
 

 
dl.details { 
 
\t /*font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;*/ 
 
\t font-size: 1.1em; 
 
} 
 

 
dl.details dt { 
 
\t float: left; 
 
\t clear: left; 
 
\t width: 30%; 
 
\t text-align: right; 
 
\t color: #000000; 
 
\t display: block; 
 
} 
 

 
dl.details dd { 
 
\t margin-left: 0; 
 
\t padding-left: 5px; 
 
\t margin-bottom: 5px; 
 
\t color: #828282; 
 
\t float: left; 
 
\t width: 65%; 
 
} 
 

 
/* Pagination 
 
---------------------------------------- */ 
 
.pagination { 
 
\t height: 1%; /* IE tweak (holly hack) */ 
 
\t width: auto; 
 
\t text-align: right; 
 
\t margin-top: 5px; 
 
\t float: right; 
 
} 
 

 
.pagination span.page-sep { 
 
\t display: none; 
 
} 
 

 
li.pagination { 
 
\t margin-top: 0; 
 
} 
 

 
.pagination strong, .pagination b { 
 
\t font-weight: normal; 
 
} 
 

 
.pagination span strong { 
 
\t padding: 0 2px; 
 
\t margin: 0 2px; 
 
\t font-weight: normal; 
 
\t color: #FFFFFF; 
 
\t background-color: #bfbfbf; 
 
\t border: 1px solid #bfbfbf; 
 
\t font-size: 0.9em; 
 
} 
 

 
.pagination span a, .pagination span a:link, .pagination span a:visited, .pagination span a:active { 
 
\t font-weight: normal; 
 
\t text-decoration: none; 
 
\t color: #747474; 
 
\t margin: 0 2px; 
 
\t padding: 0 2px; 
 
\t background-color: #eeeeee; 
 
\t border: 1px solid #bababa; 
 
\t font-size: 0.9em; 
 
\t line-height: 1.5em; 
 
} 
 

 
.pagination span a:hover { 
 
\t border-color: #d2d2d2; 
 
\t background-color: #d2d2d2; 
 
\t color: #FFF; 
 
\t text-decoration: none; 
 
} 
 

 
.pagination img { 
 
\t vertical-align: middle; 
 
} 
 

 
/* Pagination in viewforum for multipage topics */ 
 
.row .pagination { 
 
\t display: block; 
 
\t float: right; 
 
\t width: auto; 
 
\t margin-top: 0; 
 
\t padding: 1px 0 1px 15px; 
 
\t font-size: 0.9em; 
 
\t background: none 0 50% no-repeat; 
 
} 
 

 
.row .pagination span a, li.pagination span a { 
 
\t background-color: #FFFFFF; 
 
} 
 

 
.row .pagination span a:hover, li.pagination span a:hover { 
 
\t background-color: #d2d2d2; 
 
} 
 

 
/* Miscellaneous styles 
 
---------------------------------------- */ 
 
#forum-permissions { 
 
\t float: right; 
 
\t width: auto; 
 
\t padding-left: 5px; 
 
\t margin-left: 5px; 
 
\t margin-top: 10px; 
 
\t text-align: right; 
 
} 
 

 
.copyright { 
 
\t padding: 5px; 
 
\t text-align: center; 
 
\t color: #555555; 
 
} 
 

 
.small { 
 
\t font-size: 0.9em !important; 
 
} 
 

 
.titlespace { 
 
\t margin-bottom: 15px; 
 
} 
 

 
.headerspace { 
 
\t margin-top: 20px; 
 
} 
 

 
.error { 
 
\t color: #bcbcbc; 
 
\t font-weight: bold; 
 
\t font-size: 1em; 
 
} 
 

 
.reported { 
 
\t background-color: #f7f7f7; 
 
} 
 

 
li.reported:hover { 
 
\t background-color: #ececec; 
 
} 
 

 
div.rules { 
 
\t background-color: #ececec; 
 
\t color: #bcbcbc; 
 
\t padding: 0 10px; 
 
\t margin: 10px 0; 
 
\t font-size: 1.1em; 
 
} 
 

 
div.rules ul, div.rules ol { 
 
\t margin-left: 20px; 
 
} 
 

 
p.rules { 
 
\t background-color: #ececec; 
 
\t background-image: none; 
 
\t padding: 5px; 
 
} 
 

 
p.rules img { 
 
\t vertical-align: middle; 
 
\t padding-top: 5px; 
 
} 
 

 
p.rules a { 
 
\t vertical-align: middle; 
 
\t clear: both; 
 
} 
 

 
#top { 
 
\t position: absolute; 
 
\t top: -20px; 
 
} 
 

 
.clear { 
 
\t display: block; 
 
\t clear: both; 
 
\t font-size: 1px; 
 
\t line-height: 1px; 
 
\t background: transparent; 
 
}

overall_header

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
 
<!-- INCLUDE dualcore_config.html --> 
 
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> 
 
<head> 
 

 
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" /> 
 
<meta http-equiv="content-style-type" content="text/css" /> 
 
<meta http-equiv="content-language" content="{S_USER_LANG}" /> 
 
<meta http-equiv="imagetoolbar" content="no" /> 
 
<meta name="resource-type" content="document" /> 
 
<meta name="distribution" content="global" /> 
 
<meta name="keywords" content="" /> 
 
<meta name="description" content="" /> 
 
{META} 
 
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title> 
 

 
<!-- IF S_ENABLE_FEEDS --> 
 
\t <!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF --> 
 
\t <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF --> 
 
\t <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF --> 
 
\t <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF --> 
 
\t <!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF --> 
 
\t <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF --> 
 
\t <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&amp;t={S_TOPIC_ID}" /><!-- ENDIF --> 
 
<!-- ENDIF --> 
 

 
<!-- 
 
\t phpBB style name: DualCore 
 
\t Based on style: prosilver (this is the default phpBB3 style) 
 
\t Original author: Tom Beddard (http://www.subBlue.com/) 
 
\t Modified by: \t Abhishek Srivastava (http://www.abhisheksrivastava.in) 
 
--> 
 

 
<script type="text/javascript"> 
 
// <![CDATA[ 
 
\t var jump_page = '{LA_JUMP_PAGE}:'; 
 
\t var on_page = '{ON_PAGE}'; 
 
\t var per_page = '{PER_PAGE}'; 
 
\t var base_url = '{A_BASE_URL}'; 
 
\t var style_cookie = 'phpBBstyle'; 
 
\t var style_cookie_settings = '{A_COOKIE_SETTINGS}'; 
 
\t var onload_functions = new Array(); 
 
\t var onunload_functions = new Array(); 
 

 
\t <!-- IF S_USER_PM_POPUP and S_NEW_PM --> 
 
\t \t var url = '{UA_POPUP_PM}'; 
 
\t \t window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400'); 
 
\t <!-- ENDIF --> 
 

 
\t /** 
 
\t * Find a member 
 
\t */ 
 
\t function find_username(url) 
 
\t { 
 
\t \t popup(url, 760, 570, '_usersearch'); 
 
\t \t return false; 
 
\t } 
 

 
\t /** 
 
\t * New function for handling multiple calls to window.onload and window.unload by pentapenguin 
 
\t */ 
 
\t window.onload = function() 
 
\t { 
 
\t \t for (var i = 0; i < onload_functions.length; i++) 
 
\t \t { 
 
\t \t \t eval(onload_functions[i]); 
 
\t \t } 
 
\t }; 
 

 
\t window.onunload = function() 
 
\t { 
 
\t \t for (var i = 0; i < onunload_functions.length; i++) 
 
\t \t { 
 
\t \t \t eval(onunload_functions[i]); 
 
\t \t } 
 
\t }; 
 

 
// ]]> 
 
</script> 
 
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/styleswitcher.js"></script> 
 
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script> 
 
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-1.9.1.min.js"></script> 
 
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery.cookie.js"></script> 
 
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery.collapse.js"></script> 
 

 
<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" /> 
 
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" /> 
 

 
<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" /> 
 
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" /> 
 
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" /> 
 

 
<!-- IF S_CONTENT_DIRECTION eq 'rtl' --> 
 
\t <link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" /> 
 
<!-- ENDIF --> 
 

 
</head> 
 

 
<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}"> 
 

 
<div class="topnav"> 
 
<div style="margin: 0 auto; min-width: 900px; width: {$BOARD_WIDTH}; position: relative;"> 
 
<div class="navlink"><ul> 
 
\t \t \t \t <!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) and not S_IS_BOT --> 
 
\t \t \t \t <li><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x"> 
 
\t \t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_logout.png" width="16" height="16" alt="" />{L_LOGIN_LOGOUT}</strong> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <li><a href="{U_REGISTER}"> 
 
\t \t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_register.png" width="16" height="16" alt="" />{L_REGISTER}</strong> 
 
\t \t \t \t </a></li> \t 
 
\t \t \t \t <!-- ENDIF --> \t 
 
\t \t \t \t <!-- IF S_USER_LOGGED_IN and not S_IS_BOT --> 
 
\t \t \t \t <li><a href="{U_PROFILE}"> 
 
\t \t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_ucp.png" width="20" height="20" alt="" />{S_USERNAME}</strong> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> \t 
 
\t \t \t \t <!-- IF U_ACP --> 
 
\t \t \t \t <li><a href="{U_ACP}"> 
 
\t \t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_admin.png" width="20" height="20" alt="" />{L_ACP}</strong> 
 
\t \t \t \t </a></li> \t \t \t \t 
 
\t \t \t \t <!-- ENDIF --> \t \t \t \t 
 
\t \t \t \t <!-- IF S_DISPLAY_PM and not S_IS_BOT and S_USER_LOGGED_IN --> 
 
\t \t \t \t <li><a href="{U_PRIVATEMSGS}"> 
 
\t \t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_pm.png" width="20" height="20" alt="" />{PRIVATE_MESSAGE_INFO}</strong> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> 
 
\t \t \t \t <!-- IF U_RESTORE_PERMISSIONS --> 
 
\t \t \t \t <li><a href="{U_RESTORE_PERMISSIONS}"> 
 
\t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_restore.png" width="16" height="16" alt="" />{L_RESTORE_PERMISSIONS}</strong> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> 
 
\t \t \t \t <!-- IF S_USER_LOGGED_IN and not S_IS_BOT --> \t \t \t \t 
 
\t \t \t \t <li><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x"> 
 
\t \t \t \t \t <strong><img src="{T_THEME_PATH}/images/icon_logout.png" width="20" height="20" alt="" />{L_LOGOUT}</strong> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> \t \t \t 
 
</ul></div> 
 

 
<div class="navlink" style="float: right;"><ul><li> 
 
\t \t <!-- IF S_USER_LOGGED_IN --> \t \t 
 
     <div class="float-right"> \t \t 
 
      <div class="quicksearch"> 
 
       <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH --> 
 
        <form action="{U_SEARCH}" method="get" id="search"> 
 
         <fieldset> 
 
          <input name="keywords" id="keywords" type="text" maxlength="128" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" /> 
 
          <!--<input class="button2" value="{L_SEARCH}" type="submit" />--> 
 
          {S_SEARCH_HIDDEN_FIELDS} 
 
         </fieldset> 
 
         </form> 
 
        <!-- ENDIF --> 
 
      </div> 
 
     </div> \t \t \t 
 
\t \t <!-- ENDIF --> 
 
\t \t 
 
\t \t <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT --> 
 
\t <form method="post" action="{S_LOGIN_ACTION}" style="margin-top: -6px; margin-right: -5px;"> 
 
\t \t <fieldset class="quick-login"> 
 
\t \t \t <label for="username" style="color: #fff;">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="15" class="inputbox" title="{L_USERNAME}" /> 
 
\t \t \t <label for="password" style="color: #fff;">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="15" class="inputbox" title="{L_PASSWORD}" /> 
 
\t \t \t <input type="submit" name="login" value="{L_LOGIN}" class="button1" /> 
 
\t \t \t {S_LOGIN_REDIRECT} 
 
\t \t </fieldset> 
 
\t </form> 
 
\t \t <!-- ENDIF --> 
 
</li></ul></div> 
 

 
</div> 
 
</div> 
 
<div id="wrap" style="width: {$BOARD_WIDTH};"> 
 
\t <a id="top" name="top" accesskey="t"></a> 
 
\t <div id="page-header"> 
 
\t 
 
\t <div class="mainheader"> 
 
\t <a style="display: inline-block; width: 900px; height: 145px;" href="{U_INDEX}" accesskey="h" class="logo.png"<!-- IF $LOGO_ANIMATION == 'on' --> dualcore-logo-animation<!-- ENDIF -->"></a> 
 
\t </div> 
 
\t 
 
\t <div class="mainheader"> 
 
\t \t <div class="mainnav<!-- IF $MENU_ANIMATION == 'on' --> mainnav-animation<!-- ENDIF -->"><ul> 
 
\t \t \t \t <li><a href="{U_INDEX}" accesskey="h"> 
 
\t \t \t \t \t <strong>{L_HOME}</strong> 
 
\t \t \t \t \t <span>{SITENAME}</span> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <li><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"> 
 
\t \t \t \t \t <strong>{L_FAQ}</strong> 
 
\t \t \t \t \t <span>{L_FAQ_EXPLAIN}</span> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- IF not S_IS_BOT and S_DISPLAY_MEMBERLIST --> 
 
\t \t \t \t <li><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"> 
 
\t \t \t \t \t <strong>{L_MEMBERLIST}</strong> 
 
\t \t \t \t \t <span>{L_MEMBERLIST_EXPLAIN}</span> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> 
 
\t \t \t \t <!-- IF S_DISPLAY_SEARCH --> 
 
\t \t \t \t <li><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"> 
 
\t \t \t \t \t <strong>{L_SEARCH}</strong> 
 
\t \t \t \t \t <span>{L_SEARCH_ADV_EXPLAIN}</span> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> 
 
\t \t \t \t <!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> 
 
\t \t \t \t <li><a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e"> 
 
\t \t \t \t \t <strong>{L_READ_PROFILE}</strong> 
 
\t \t \t \t \t <span>{L_PROFILE}</span> 
 
\t \t \t \t </a></li> 
 
\t \t \t \t <!-- ENDIF --> 
 
\t \t </ul></div> 
 
\t </div> \t \t 
 
\t <div class="nav-bar"> 
 
\t <img src="{T_THEME_PATH}/images/icon_home.png" width="16" height="16" alt="" /><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --> 
 
\t </div> \t \t 
 

 
\t </div> 
 

 
\t <a name="start_here"></a> 
 
\t <div id="page-body"> 
 
\t \t <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
 
\t \t <div id="information" class="rules"> 
 
\t \t \t <div class="inner"><span class="corners-top"><span></span></span> 
 
\t \t \t \t <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED} 
 
\t \t \t <span class="corners-bottom"><span></span></span></div> 
 
\t \t </div> 
 
\t \t <!-- ENDIF -->

+0

您是否試圖將'background-image:/ path-to-img/dep_banner.png'添加到的樣式? – Corvae

+0

是的,我試過了,但我不知道它是否轉到了html文件或css文件。 – A0i5

+0

在common.css中,您可以嘗試添加'.mainheader a [href =。/ index.php?etc] {background-image:dep_banner.png; }',用'href'指定圖像將應用於哪個。 – Corvae

回答

0

在包含的html,請嘗試替換

<div class="mainheader"> 
<a style="display: inline-block; width: 900px; height: 145px;" href="{U_INDEX}" accesskey="h" class="logo.png"<!-- IF $LOGO_ANIMATION == 'on' --> dualcore-logo-animation<!-- ENDIF -->"></a> 
</div> 

<div class="mainheader"> 
<a style="display: inline-block; width: 100%;" href="{U_INDEX}" accesskey="h"><img src="images/dep_banner.png" style="width=100%"/></a> 
</div> 

添加圖像<img>,而不是背景圖像會更容易調整。更多信息here

+0

我去了類選擇器規則,但我不知道如果我輸入它的權利。 '.mainheader a.logo.png { \t background-image:dep_banner.png; \t }' – A0i5

+0

對不起,我忘了添加url和引號,請檢查我的編輯。我試着將它添加到你現在在開發工具中的東西,但得到404。檢查你的圖像的路徑,但應該工作。 – Corvae

+0

好吧,我用正確的路徑編輯了html文件'/ deepetherproductions.com/forum/styles/dualcore/theme/images/dep_banner.png'。但是,我再次沒有看到任何變化。也許使用'img src'屬性可能是一個更好的選擇。 – A0i5

相關問題