Spring Roo CSS 定制

发布于 2024-12-08 20:07:46 字数 172 浏览 7 评论 0原文

我是 Java 和 Spring 的新手,但 Spring Roo 在我看来非常直观,除了 css background:url () 属性。 这就是我今天来这里的原因,想问是否有人知道在 css 文件中包含图像 url 的方法(如果 Spring Roo 允许的话)?

感谢您抽出时间。

I'm a newbie in Java and Spring, but Spring Roo seemed to me pretty intuitive, except for the css background:url () property.
That's why I'm here today, to ask if anyone knows a way of including images' url in css file (If Spring Roo permit it)?

Thanks for your time.

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

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

发布评论

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

评论(1

〃温暖了心ぐ 2024-12-15 20:07:46

是的,这会起作用。最终,您在浏览器中看到的每个主页都只是 HTML、Javascript 和 CSS。
只是它的生成方式不同可能会有很大不同。

自己尝试一下,将 body 标记中的以下行添加到 standard.css(您可以在 resources/styles/ 文件夹中找到该文件)

background:url(http://www.google.de/images/srpr/logo3w.png) top left;

Yeah this will work. In the end every homepage you see in the browser is just HTML, Javascript and CSS.
Just the way it is generated differ may differ wildly.

Try it yourself by adding the following line in the body-tag to standard.css which you find in the folder resources/styles/

background:url(http://www.google.de/images/srpr/logo3w.png) top left;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文