简体   繁体   English

WP简单主题,改变图像行为

[英]WP simple theme, change image behaviour

On the homepage of the theme "WP simple" there is an image that is set to cover the full width of the visible area. 在主题“ WP simple”的主页上,有一张图像被设置为覆盖可见区域的整个宽度。

I would like to change the behavior and to block the maximum width to a certain amount of pixels. 我想更改行为并将最大宽度限制为一定数量的像素。

I was able to find the html that handle the image, but I can't figure out what handles the resize, if it is done by javascript/jquery or by css and the inspect tool of the browser isn't helping to find the issue. 我能够找到处理图像的html,但是我无法弄清楚是什么处理了调整大小的问题,如果它是通过javascript / jquery或css完成的,并且浏览器的检查工具无法帮助您找到问题, 。

Someone is able to help me pinpoint the location where i need to make changes? 有人可以帮助我指出我需要进行更改的位置吗?

<section class="frontpage-banner parallax_active" data-parallax="scroll" data-image-src="http://mysite.loc/wp-content/uploads/2018/05/my-image.jpg" style="background: rgba(0, 0, 0, 0.3); padding-top: 288.667px; padding-bottom: 288.667px;">
<div class="container">
  <div class="banner-wrap" style="visibility: visible; "></div>      
</div>    
</section>

对于wp主题,宽度通常是由javascript代码或css @media规则生成的,但是您可以通过使用!important标签在style属性中添加值来覆盖它:

style="max-width:100px !important;background: rgba(0, 0, 0, 0.3)..."

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

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