如何调整通过 JSON 中的链接显示的图像的大小?
这就是我的代码目前的样子。
<div id= "logos"> <%= image_tag @schedule["data"][1]["visitorTeam"]["data"]["logo_path"] %></div>
它正在为我获取徽标,但我需要能够将徽标的大小调整为更合适的大小。我已经尝试过典型的 CSS 代码,如“最大宽度”等,但所做的只是缩小徽标挤入的窗口的区域(这样我可以在这个小窗口中滚动并看到图像仍然是平常的)尺寸),它实际上并没有缩小徽标本身。
有办法做到这一点吗?
This is what my code currently looks like.
<div id= "logos"> <%= image_tag @schedule["data"][1]["visitorTeam"]["data"]["logo_path"] %></div>
It's getting the logo for me, but I need to be able to re-size the logo to a more appropriate size. I've tried the typical CSS code like "max-width", etc, but all that does is shrink the area where the window where logo squeezes into (so I can scroll around in this small window and see the image still at it's usual size), it doesn't actually shrink the logo itself.
Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论