【问题标题】:CSS3 pie not working in codeigniterCSS3 pie 在 codeigniter 中不起作用
【发布时间】:2015-02-09 07:40:44
【问题描述】:

我在视图中实现了 css3pie,如下所示:

.abc{
        behavior: url("./assets/../../PIE.htc");
        background-color: yellow;
        border: 0px solid;
        border-radius: 17px;
        box-shadow: 5px 5px 1px #999999;

    }

这对我不起作用,即使我将 /public_html/.htaccess 中的 .htaccess 编辑为:

CheckSpelling On
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L]
AddType text/x-component .htc

非常感谢您的回答

【问题讨论】:

    标签: php css .htaccess codeigniter css3pie


    【解决方案1】:

    一定是PATH问题。

    您是否尝试过直接导航到网址(在地址栏中)以确保您可以访问它?尝试将其放在与 CSS 文件相同的目录中以确保。

    在使用 PIE 时,很多元素需要 position:relative 或 zoom:1 才能在 IE 中运行,请确保检查已知问题页面并玩转直到你让它工作。

    【讨论】:

    • 即使我将 PIE.htc 和 PIE.php 放在视图的同一目录中并在视图的 css 中添加 position:relative 或 zoom:1 ,当我在时它仍然不适合我使用 IE 8 浏览页面。
    【解决方案2】:

    .htaccess 已设置不正确的级别 .htaccess,我已修复它。

    需要设置.htaccess级别:

    public_html/.htaccess

    public_html/CSS3PIE/.htaccess

    【讨论】:

      猜你喜欢
      • 2012-09-29
      • 2011-06-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-14
      • 2014-01-08
      • 1970-01-01
      相关资源
      最近更新 更多