Drupal 7 开发内部培训资料, 分头诗人

安装drupal8时,CSS样式没有正常显示

赞成!
0
否决!

请教下:我在安装Drupal8的时候,CSS样式不能正常显示,界面显示为文本,但是在同一个目录下,drupal7的界面显示确实正常的,请问下是什么情况?

是主机配置的问题吗?

 

看了一下界面的源码,引用的样式表显示如下:

<style media="all">
@import url("http://180.76.x.x/drupal/core/assets/vendor/normalize-css/normalize.css?0");
@import url("http://180.76.x.x/drupal/core/modules/system/css/system.module.css?0");
@import url("http://180.76.x.x/drupal/core/modules/system/css/system.theme.css?0");
</style>
<style media="all">
@import url("http://180.76.x.x/drupal/core/modules/system/css/system.admin.css?0");
@import url("http://180.76.x.x/drupal/core/modules/system/css/system.maintenance.css?0");
</style>
<style media="all">
@import url("http://180.76.x.x/drupal/core/themes/seven/css/base/elements.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/base/typography.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/base/print.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/layout/layout.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/admin-list.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/admin-options.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/admin-panel.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/block-recent-content.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/content-header.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/breadcrumb.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/buttons.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/buttons.theme.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/comments.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/messages.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/dropbutton.component.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/entity-meta.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/field-ui.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/form.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/help.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/menus-and-lists.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/modules-page.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/node.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/page-title.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/pager.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/skip-link.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/tables.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/tabs.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/tour.theme.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/update-status.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/components/views-ui.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/theme/appearance-page.css?0");
</style>
<style media="all">
@import url("http://180.76.x.x/drupal/core/themes/seven/css/theme/maintenance-page.css?0");
@import url("http://180.76.x.x/drupal/core/themes/seven/css/theme/install-page.css?0");
</style>

3 个回答

赞成!
0
否决!

先排查下,你的环境是否满足Drupal 8. 看看System requirements

赞成!
0
否决!

搞定,多谢,主要是nginx的配置中多了一句:fastcgi_split_path_info ^(.+\.php)(/.+)$;

注释掉就OK了。

 

多谢!

赞成!
0
否决!

同问 我用的是XAMPP 

PHP Version 5.6.30

Apache/2.4.25 (Unix) OpenSSL/1.0.2j PHP/5.6.30 mod_perl/2.0.8-dev Perl/v5.16.3