是否可以与目录的DOM进行交互?

发布于 2025-01-30 13:45:14 字数 271 浏览 2 评论 0原文

当我导航到目录时,例如my-domain.com/directory_of_files/,该目录显示在浏览器中,我可以在开发工具中检查元素。这主要由< a>链接嵌入在< table> s; s中。

鉴于所讨论的网站是我自己的,是否可以与目录页面的DOM进行交互并影响其呈现方式?如果是这样,怎么样?我已经尝试在开发工具中更改元素,但是我不确定如何从自己的HTML/CSS/JavaScript中执行此操作。

When I navigate to a directory, e.g. my-domain.com/directory_of_files/, the directory is displayed in the browser, and I can inspect the elements in dev tools. This mostly consists of <a> links embedded within <table>s.

Given that the site in question is my own, is it possible to interact with the DOM of a directory page and affect how it is rendered? If so, how? I've tried changing elements in dev tools, but I'm not sure how I'd do this from my own html/css/javascript.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文