Bootstrap 3.0不能与Apache 2.4一起使用吗?

 唐瑄星 发布于 2022-12-29 12:36

我刚刚安装了Apache 2.4附带的Centos 7.0.我的引导程序应用程序无法正确呈现.具体而言,引导程序组件无法正确呈现.例如,在class = btn-primary的按钮上,颜色为蓝色,文本为白色,使用Apache 2.4将文本渲染为黑色.还有很多其他问题.

我的问题是有其他人有这个问题吗?是否存在诸如html标签的向后兼容性标志之类的解决方法?我用谷歌搜索,找不到任何其他参考.

感谢您分享您可能拥有的任何调查结果.

1 个回答
  • 我们遇到了同样的问题.我们花了5-6小时来调试.它是/etc/httpd/conf.d/目录中的welcome.conf中的别名映射bootstrap.css

    Alias /.noindex.html /usr/share/httpd/noindex/index.html
    Alias /css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css
    Alias /css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css
    Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif
    Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png
    

    只需删除/注释掉所有/ css /行或禁用welcome.conf.我不知道这是否只附带CentOS或httpd包.这是一个愚蠢的事情.

    同样的事情也发生在/ error/alias上.

    2022-12-29 12:39 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有