在 Eclipse 中关闭 CSS 图像路径校正

发布于 2024-11-19 10:31:45 字数 340 浏览 9 评论 0原文

我有 RAD 7.5,在修改 CSS 文件时,RAD “保存时”会“自动更正”图像路径。我还没有找到关闭它的方法,但我不想保留这种行为。

这里的问题是,假设我有这样的 css:

.someClass {
   background: (images/someImage.gif);
}

当我在 RAD 中处于 CSS 设计模式时保存文件时,该文件将尝试自动将图像路径更改为如下所示:

.someClass {
   background: (root/WEBAPPLICATION/images/someImage.gif);
}

I have RAD 7.5 and when modifying CSS files, RAD "auto-corrects" image paths "on save". I haven't found a way to turn that off but I don't want to keep this behavior.

The issue here is that let's say I have css like this:

.someClass {
   background: (images/someImage.gif);
}

When I save the file while in CSS design mode in RAD, the file will try to automatically change the image path to something like:

.someClass {
   background: (root/WEBAPPLICATION/images/someImage.gif);
}

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

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

发布评论

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

评论(2

芯好空 2024-11-26 10:31:45

在 RAD 中,转到 Windows >首选项>网络工具>>链接。

  1. 在右侧>在默认链接路径下,您有 2 个选项
  2. 相对于文档目录
  3. 相对于文档根目录。

我想你需要选择选项1。

In RAD, Goto Windows > Preferences > webtools > links.

  1. In the right side > under defualt link path you have 2 options
  2. Relative to document Directory
  3. Relative to document Root directory.

I guess you need to select option 1.

扛起拖把扫天下 2024-11-26 10:31:45

我找到了解决这个问题的方法,解决了我想要做的事情。

我在窗口...首选项...编辑器...文件关联中向 *.css 文件添加了文件关联。添加 *.css 文件类型,然后在关联编辑器中选择“文本编辑器”。
然后选择“默认”以使其成为默认编辑器。

这将以纯文本方式打开 css 文件,并且不使用图像路径的自动更新。

I found a workaround to this problem that solves what I was trying to do.

I added a File Association to *.css files in Window...Preferences...Editors...File Associations. Add *.css file type, and select "Text Editor" in the Associated Editor.
Then select "Default" to make this the default editor.

This will open css files as plain text, and not use the automatic update of image paths.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文