如何加载我的 ASSX CSS 处理程序?

发布于 2024-12-07 19:57:43 字数 662 浏览 2 评论 0原文

我想将我的CSS代码解析为这个条件CSS解析(我希望我说得正确) http://www.conditional-css.com/usage

说明说我必须粘贴CSS 所在文件夹中的 c-css.ashx 文件。

接下来我必须在我的模板主文件中添加 @import 行???

以下是说明,您能帮我吗?

ASHX 处理程序

如果您想尝试,条件 CSS 的 C# ASSX 版本是完美的选择 在 .Net 环境中使用 Conditional-CSS,或者只有几个 您网站上的 CSS 文件。安装:

  1. 将下载的文件 (c-css.ashx) 放在您的服务器上的同一个目录中 位置作为您的 CSS 文件。

  2. 加载您在网络浏览器中上传的“c-css.ashx”文件,然后 欣赏解析后的 CSS。

  3. 包括“c-css.ashx”文件,就像您的计算机上的任何 CSS 文件一样 网页使用:@import "{path_to_}/c-css.ashx"; (或者 类似)。

I want to parse my css code into this conditional css parse (i hope ive said that correctly)
http://www.conditional-css.com/usage

The instructions say that i must paste the c-css.ashx file in the folder where the CSS resides.

Next i must add an @import line in my template master file???

below are the instructions, can you help me out?

ASHX handler

The C# ASHX version of Conditional-CSS is perfect if you wish to try
out Conditional-CSS in a .Net environment, or only have a couple of
CSS files on your site. To install:

  1. Place the downloaded file (c-css.ashx) on your server in the same
    location as your CSS files.

  2. Load the 'c-css.ashx' file you uploaded in your web-browser and
    admire the parsed CSS.

  3. Include the 'c-css.ashx' file as you would any CSS file on your
    web-pages using: @import "{path_to_}/c-css.ashx"; (or
    similar).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋意浓 2024-12-14 19:57:43

在 html 页面的 部分中,@import 的完成方式如下:

<style type="text/css" media="screen">
@import "/pathtocss/c-css.ashx";
</style>

没有理由不能使用 来完成它任何一个:

<link rel="stylesheet" type="text/css" href="/pathtocss/c-css.ashx">

In your <head> section of an html page, an @import is done like so:

<style type="text/css" media="screen">
@import "/pathtocss/c-css.ashx";
</style>

There's no reason why you couldn't do it with a <link> either:

<link rel="stylesheet" type="text/css" href="/pathtocss/c-css.ashx">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文