在 Eclipse 中关闭 CSS 图像路径校正
我有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 RAD 中,转到 Windows >首选项>网络工具>>链接。
我想你需要选择选项1。
In RAD, Goto Windows > Preferences > webtools > links.
I guess you need to select option 1.
我找到了解决这个问题的方法,解决了我想要做的事情。
我在窗口...首选项...编辑器...文件关联中向 *.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.