CSS / CGI配置 [英] CSS/CGI Configuration

查看:106
本文介绍了CSS / CGI配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我正在用CGI做我的第一个CSS,而且我遇到了一些配置问题。

我''在Mac上,Panther。


我有一个CGI打印带有@import url的头部。连接到

样式表。

网页很好,但没有应用样式表。


CGI在系统范围内的cgi-bin

(/ Library / WebServer / CGI-Executables),我已经在系统范围的web文档文件夹中尝试了样式表,并且

我自己的本地

网络文件夹。同样的效果 - 拉链。我在

导入(斜线等)上尝试了一些变化,对

无影响。我被告知@import是正确的方法

(虽然我这里没有

经验)。


如果我将页面源保存到我本地Web文件夹中的文件,并且

只需将其打开为

静态页面,则应用CSS作为它应该。没问题。


Apache日志给我的投诉是关于导入的文件不是

现有的,一个

奇怪的一个关于无法找到名为cpan.css的文件。什么是稀释?


迈克

-

这超出了我的能力......而我的芭比娃娃,以及我的所有行动数据。在comp.infosystems中,

Hi all

I''m doing my first CSS with a CGI, and I''m haivng some configuration problems.
I''m on a Mac, Panther.

I''ve got a CGI that prints a head with "@import url" to connect to a
stylesheet. The
web page comes out fine, but without the stylesheet applied.

The CGI is in the systemwide cgi-bin
(/Library/WebServer/CGI-Executables), and I''ve
tried the stylesheet in both the systemwide web documents folder, and
my own local
web folder. Same effect - zip. I''ve tried little variations on the
import (slashes, etc), to
no effect. I''ve been advised that the @import is the correct method
(although I have no
experience here).

If I save the source of the page to a file in my local web folder, and
simply open it up as a
static page, the CSS is applied as it should be. No trouble there.

The Apache log gives me complaints about the imported file not
existing, and one
weird one about not being able to find a file called cpan.css. What the dilly?

Mike
--
"It''s beyond my ken... and my Barbie, and all of my action figures."

推荐答案

www.authoring.stylesheets ,Mikey写道:
网页出来很好,但没有应用样式表
The web page comes out fine, but without the stylesheet applied




网址?


-

Lauri Raittila< http://www.iki .fi / LR> < http://www.iki.fi/zwak/fonts>

荷兰乌得勒支。

支持我,购买Opera:
https://secure.bmtmicro.com/opera/bu ... tml?AID = 882173


经过认真考虑后,于2005年4月29日星期五下午5:25
前******************* **** @earthlink.net 写道:
After serious contemplation, on or about Friday 29 April 2005 5:25 pm
ex***********************@earthlink.net wrote:
大家好

我正在用CGI做我的第一个CSS,而我我讨厌一些配置问题。我在Mac上,Panther。

我有一个用@import url打印头部的CGI。连接到
样式表。
网页很好,但没有应用样式表。

CGI在系统范围内的cgi-bin
(/ Library / WebServer / CGI-Executables),以及我已经在系统范围的web文档文件夹和
我自己的本地
web文件夹中尝试了样式表。同样的效果 - 拉链。我在
导入(斜线等)上尝试了很少的变化,没有效果。我被告知@import是正确的方法
(虽然我在这里没有经验)。

如果我将页面源保存到文件在我的本地Web文件夹中,只需将其打开为静态页面,就可以应用CSS。没有麻烦。

Apache日志给我的投诉是关于导入的文件不存在,还有一个奇怪的是无法找到一个名为cpan.css的文件。
是什么?

Mike
Hi all

I''m doing my first CSS with a CGI, and I''m haivng some configuration
problems. I''m on a Mac, Panther.

I''ve got a CGI that prints a head with "@import url" to connect to a
stylesheet. The
web page comes out fine, but without the stylesheet applied.

The CGI is in the systemwide cgi-bin
(/Library/WebServer/CGI-Executables), and I''ve
tried the stylesheet in both the systemwide web documents folder, and
my own local
web folder. Same effect - zip. I''ve tried little variations on the
import (slashes, etc), to
no effect. I''ve been advised that the @import is the correct method
(although I have no
experience here).

If I save the source of the page to a file in my local web folder, and
simply open it up as a
static page, the CSS is applied as it should be. No trouble there.

The Apache log gives me complaints about the imported file not
existing, and one
weird one about not being able to find a file called cpan.css. What the
dilly?

Mike



您是否使用转义字符/在@前面字符?试试

" / @ import" myfavorite.css:除非你使用格式

print qq~

< html>

< body>

< / body>

< / html>〜;


-

后来,

Darrell Stec da **** *@neo.rr.com


网页法术
http://webpagesorcery.com

我们将魔法放入您的网页


Did you use the escape character "/" in front of the "@" character? Try
"/@import "myfavorite.css: unless you are using the format"
print qq~
<html>
<body>
</body>
</html>~;

--
Later,
Darrell Stec da*****@neo.rr.com

Webpage Sorcery
http://webpagesorcery.com
We Put the Magic in Your Webpages


2005-04-29 17:23:38 -0400,Lauri Raittila< la *** @ raittila.cjb.net>在comp.infosystems中说:
On 2005-04-29 17:23:38 -0400, Lauri Raittila <la***@raittila.cjb.net> said:
www.authoring.stylesheets ,Mikey写道:
网页出来很好,但没有应用样式表
The web page comes out fine, but without the stylesheet applied



URL?



URL?




我所拥有的基本上是


print''< style type =" text / css" title =" text / css">

<! -

@import url(" the_stylesheet.css");

- >

< / style>'';


但样式表应该放在哪里?

- -

这超出了我的能力......我的芭比娃娃和我所有的行动人物。



What I have is essentially

print ''<style type="text/css" title="text/css">
<!--
@import url("the_stylesheet.css");
-->
</style>'';

But where should the stylesheet be located?
--
"It''s beyond my ken... and my Barbie, and all of my action figures."


这篇关于CSS / CGI配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆