duanche8554 2011-09-19 13:05
浏览 17

在表达引擎2.2.2中; 我的css无处不在,为什么?

I am a beginner in programming and in the use of expressionengine, I don't understand why my CSS desn't work, I explain:

-in first, I intented to make a template for it, in html tags, but unsuccessfully

-in second, I intented to make it with a snippet, with the same method, unsuccessfully too

-at least, I did it whith a snippet but with a css's file's link, and it work but only with my index's template's group

thank you for answer to a noob in programming

Best wishes, seb.

Thank you for having answered,

of course I can, this is what is there in my snippet "header":

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Metamorphosis Design Free Css Templates</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/styles.css" rel="stylesheet" type="text/css" media="all"/>
</head>
<body>

thank you for the time you passe on my request, thanks à lot.

yes, it work, thank you very much florian^^^^.


the relative path was wrong because the road was not where it was,

I used the first way FortySeven Media, it lacked a level of the tree

thanks a lot for all every body

  • 写回答

5条回答 默认 最新

  • dongrong5189 2011-09-19 13:40
    关注

    sounds like a linking issue. make sure your path to the url file works from all templates..

    I usually do something like this

    <link rel="stylesheet" href="{site_url}css/style.css?v=2">
    

    Then I create a folder on the ftp called 'css' and I upload my css file there.

    You could put the line into to a snippet and include that with all your templates ..

    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向