膨胀大小Webhost固定广告? (在底部) [英] Inflated Size Webhost Fixed Ad? (on bottom)

查看:104
本文介绍了膨胀大小Webhost固定广告? (在底部)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么会导致这个虚拟主机广告如此之大? (底部)
https://scottschmidtportfolio.000webhostapp.com/

What would cause this webhost ad to be so big? (on bottom) https://scottschmidtportfolio.000webhostapp.com/

这是它假设的大小?
https://solenoidal-slate.000webhostapp.com/

This is the size it is suppose to be? https://solenoidal-slate.000webhostapp.com/

你认为这是我的代码中的东西吗?我删除了所有的代码,然后重新编写它。

Would you think it is something in my code? I deleted all the code and then remade it.

对不起,如果这是错误的部分

Sorry if this is in the wrong section

推荐答案

更改img style in style.css 在行号: 91
像这样:

Change the img style in style.css at line number: 91 Like this:

img {
   overflow: hidden;
   /*width: 240px; 
   height: 109px; 
   min-width: 240px; 
   min-height: 200px; 
   max-width: 240px; 
   max-height: 110px; */
   position: relative;
   display: block;
   margin: auto;
   margin-left: auto;
   margin-right: auto;
}

img 是一个一般选择器,所以它影响所有的图像标签。尝试使用针对特定元素的更具体的选择器。我可以看到您网站上的所有图片都被拉伸了,我认为这是因为上面的代码。

img is a general selector so it affect all the image tag. Try to use more specific selector targeted to one particular element. I can see all the images in your site are stretched I think it's because of above code.

这篇关于膨胀大小Webhost固定广告? (在底部)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆