如何在 MOSS 2007 中动态编辑 Web 部件的 .css 文件?

发布于 2024-08-07 12:03:35 字数 123 浏览 3 评论 0原文

我有一个使用功能安装的 Web 部件。该 Web 部件有一个已部署的 css 文件,我需要对其进行调整,但在任何地方都找不到它。我怀疑它可能在 SQL Server 数据库中。 那么我怎样才能找到它、编辑它并即时查看更改呢?谢谢。

I have a web part that is installed using a feature. This web part has a css file that is deployed and I need to tweak it, but can't find it anywhere. I suspect it might be in the SQL Server DB.
So how can I find it, edit it and see changes on the fly? Thanks.

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

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

发布评论

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

评论(2

柳若烟 2024-08-14 12:03:35

如果您想跟踪 .CSS 文件所在的位置,您有几个选项。
您可以使用 IE 开发人员工具栏。如果您有 Internet Explore 版本 8,则您已经拥有它。

按 F12 打开工具栏。按 CTRL+B 并使用鼠标定位并找到您感兴趣的元素。

选择左侧工具栏中的 CSS 选项卡,然后在下拉框中找到 CSS 文件,或者右侧的“Trace styles”并查看哪个 CSS 文件是样式的基础。

IE 开发人员工具栏还允许您动态更改 CSS 参数,以便您在编辑它们时可以直接看到结果如何。

If you want to trace where the .CSS file is located, you have a coupl of options.
You can use the IE developer toolbar. If you have Internet Explore version 8, you already have it.

Press F12 to open the tool bar. Press CTRL+B and use the mouse to locate and find the element you are interested in.

Select the CSS tab in the left toolbar and locate the CSS file in the dropdown box, or the "Trace styles" on the right hand side and see which CSS file is the base for the style.

The IE developer tool bar also lets you change CSS parameters on the fly so you can see how the result will be directly when you edit them.

负佳期 2024-08-14 12:03:35

JavaScript 允许您动态更改样式和 CSS。 AFIK 这是在运行时执行此操作的唯一方法。我建议使用像 JQuery 这样的库来减轻痛苦并利用现有代码。

JavaScript will allow you to change styles and CSS on the fly. AFIK this is the only way to do it at runtime. I would recommend using a lib like JQuery to make it less painful and to leverage existing code.

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