简体   繁体   English

调整大小<div>容器内联?

[英]Resizing a <div> container inline?

So, I'm on a wiki, and I'm putting a personal image on.所以,我在一个 wiki 上,我在放一张个人形象。 In order to not waste space and possibly risk image policy, I am uploading the image to Imgur and using HTML to put it in my Userspace using this code:为了不浪费空间和可能的图像策略风险,我将图像上传到 Imgur 并使用 HTML 使用以下代码将其放入我的用户空间:

<div style="text-align:left" alt="Chronoculars">https://i.imgur.com/0iTLJ3O.png</div>

However, the file I uploaded is too hi-res, and it displays too large when put on the webpage.但是我上传的文件太高清了,放到网页上显示太大了。 I have found several fixes to the problem, but they all require external CSS, which I cannot do because this is all on a wiki.我已经找到了几个解决这个问题的方法,但它们都需要外部 CSS,我不能这样做,因为这都在 wiki 上。

Can I resize the image inline?我可以内联调整图像大小吗?

<div style="text-align:left;" alt="Chronoculars"><img style="height:500px; width:500px;" src="https://i.imgur.com/0iTLJ3O.png"></div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM