【发布时间】:2016-05-11 19:49:01
【问题描述】:
我正在让一个 Drupal 站点在我的本地主机上工作。目前,它似乎输出了一些内容(数据库正在运行),但没有任何样式。
当我查看源代码时,我看到了:
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="screen" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="print" />
<link type="text/css" rel="stylesheet" href="http://localhost:88/sites/MAA/" media="all" />
<script type="text/javascript" src="http://localhost:88/sites/MAA/sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js?v=1.8.3"></script>
也就是说,除了网站的路径部分外,不包含模板的 CSS。现在,.info 文件如下:
; Stylesheets. Anything within the "framework" folder will be placed before all others.
stylesheets[all][] = styles/framework/reset.css
stylesheets[all][] = styles/framework/text.css
stylesheets[all][] = styles/framework/960.css
stylesheets[all][] = styles/framework/debug.css
stylesheets[all][] = styles/css/css_hides.css
; Theme specific styles. Any sub-themes should override this.
stylesheets[all][] = styles/skin.css
stylesheets[all][] = styles/maa.css
stylesheets[all][] = styles/maa-legacy.css
stylesheets[all][] = styles/jq-ui-date-range-picker/ui.daterangepicker.css
stylesheets[all][] = styles/styles_nvl.css
stylesheets[all][] = styles/css_hides.css
stylesheets[print][] = styles/print.css
; Theme specific scripts.
scripts[] = "js/enlargeit.js"
scripts[] = "js/jquery-ui.js"
scripts[] = "js/custom.js"
regions[page_top] = Page top
regions[header] = Header
regions[search_box] = Search Box
regions[main_nav] = Main Navigation
regions[highlighted] = Highlight
regions[featured] = Featured
regions[help] = Help
regions[home_content] = Home Content
regions[home_content_bottom] = Home Content Bottom
regions[content] = Content
regions[sidebar_first] = Left sidebar
regions[sidebar_second] = Right sidebar
regions[footer_top] = Footer Top
regions[footer_top_left] = Footer Top Left
regions[footer_top_center_one] = Footer Top Center 1
regions[footer_top_center_two] = Footer Top Center 2
regions[footer_top_right] = Footer Top Right
regions[footer_left] = Footer Left
regions[footer_right] = Footer Right
regions[page_bottom] = Page bottom
谁能告诉我应该去哪里解决这个问题?在 html.tpl.php 文件中,有一行输出样式,但是我找不到它的填充位置。
<?php print $styles; ?>
<?php print $scripts; ?>
【问题讨论】:
标签: php html css drupal drupal-7