使用.js和.css进行img处理 [英] img processing with .js and .css

查看:107
本文介绍了使用.js和.css进行img处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个img规范


< IMG SRC =" https://my/current/location/file.gif"名称= QUOT; P t2中" width =" 15">


我想使用.css规范,允许我停止

硬编码所有位置我的文件。我似乎无法找到

正确的.css咒语。


建议?

解决方案

Paul Thompson于2005年2月1日在comp.lang.javascript中写道

这是一个img规范

< IMG SRC =" https://my/current/location/file.gif"名称= QUOT; P t2中" width =" 15">

我想使用.css规范,允许我停止在我的所有文件中对该位置进行硬编码。我似乎无法找到
正确的.css咒语。

建议?




那不是css是为了。虽然你可以在一个div中声明一个背景图片

,但它并不是那么有用。


此外这是一个javascript NG而不是CSS。


使用javascript,答案很简单。


-

Evertjan。

荷兰。

(用我的电子邮件地址替换所有带点的十字架)


Evertjan。写道:

Paul Thompson于2005年2月1日在comp.lang.javascript写了

这是一个img规范

< IMG SRC =" https://my/current/location/file.gif"名称= QUOT; P t2中" width =" 15">

我想使用.css规范,允许我停止在我的所有文件中对该位置进行硬编码。我似乎无法找到
正确的.css咒语。

建议?



这不是css的用途。虽然你可以在一个div中声明一个背景图像,但它并不是那么有用。

此外,这是一个javascript NG而不是CSS。

使用javascript,答案很简单。



你介意把它送出去,或者把我带到正确的地方吗?


Paul Thompson于2005年2月1日在comp.lang.javascript中写道

此外这是一个javascript NG而不是CSS一个。

使用javascript,答案很简单。


你介意把它拿出来,还是把我带到正确的地方?




尝试使用CSS:


< news:comp.infosystems.www.authoring.stylesheets>


- -

Evertjan。

荷兰。

(用我的电子邮件中的点替换所有十字架)


Here is an img specification

<IMG SRC="https://my/current/location/file.gif" name="Pt2" width="15">

I would like to use a .css specification, to allow me to stop
hard-coding that location in all my files. I can''t seem to find the
correct .css incantation for this.

Suggestions?

解决方案

Paul Thompson wrote on 01 feb 2005 in comp.lang.javascript:

Here is an img specification

<IMG SRC="https://my/current/location/file.gif" name="Pt2" width="15">

I would like to use a .css specification, to allow me to stop
hard-coding that location in all my files. I can''t seem to find the
correct .css incantation for this.

Suggestions?



That is not where css is for. Though you could declare a background image
in a div, it is not that usefull methinks.

Furthermore this is a javascript NG and not a CSS one.

With javascript the answer is easy.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


Evertjan. wrote:

Paul Thompson wrote on 01 feb 2005 in comp.lang.javascript:

Here is an img specification

<IMG SRC="https://my/current/location/file.gif" name="Pt2" width="15">

I would like to use a .css specification, to allow me to stop
hard-coding that location in all my files. I can''t seem to find the
correct .css incantation for this.

Suggestions?


That is not where css is for. Though you could declare a background image
in a div, it is not that usefull methinks.

Furthermore this is a javascript NG and not a CSS one.

With javascript the answer is easy.


Would you mind giving it out, or directing me to the correct place?


Paul Thompson wrote on 01 feb 2005 in comp.lang.javascript:

Furthermore this is a javascript NG and not a CSS one.

With javascript the answer is easy.


Would you mind giving it out, or directing me to the correct place?



Try for CSS:

<news:comp.infosystems.www.authoring.stylesheets >

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


这篇关于使用.js和.css进行img处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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