Css 如果一个参数和不';如果他们不止一个就不行了

Css 如果一个参数和不';如果他们不止一个就不行了,css,.htaccess,Css,.htaccess,这是我的.htaccess RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_URI} \.(js|css|jpe?g|gif|png|bmp|ico)$ [NC] RewriteRule ^(.*)$ index.php [L,QSA] 如果我在打字,效果很好,但如果例如:( 我还使用

这是我的.htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_URI} \.(js|css|jpe?g|gif|png|bmp|ico)$ [NC]
RewriteRule ^(.*)$ index.php [L,QSA]
如果我在打字,效果很好,但如果例如:(

我还使用了smarty with header.tpl,其中写到包含js、img和css,这可能是问题所在?

这是您的问题:

<html><head><link .... "css/style.css"></head><body>

应该是:

<html><head><link .... "/css/style.css"></head><body>


听起来像是相对地(例如
包含/style.CSS
)而不是绝对地(例如
/includes/style.CSS
)包含CSS。如果看不到更多的代码,就很难提供更多帮助。我使用smarty语法$smarty->display('header.tpl');$smarty->display('page..tpl');$smarty->display->display('footer.tpl'));用于构建最终页面。在header.tpl中,我有@user1493344,很抱歉,我无法理解您的评论。您能否以不同的方式解释它,或者提供更多我们可以使用的代码?