我有基于wordpress的网站,我在那里使用组合插件。我的问题是组合插件的特色图像,内联css是附加到特色图像元素,将图像的高度设置为600 to,这是我的原始图像之上的作物。
如何将这600 to更改为750 to?简而言之,有没有办法改变wordpress上投资组合项目特征图像的内联元素css?
element.style {背景: url(https://www.meletiorient.com/wp-content/uploads/2022/10/DSC_2972-.jpg) 50% 50% /覆盖不重复;高度:600 no;}
https://www.meletiorient.com/portfolio/afghan-bukhara-single/
这是现场直播的页面。
非常感谢。
发布于 2022-10-10 23:39:23
我通过更改custom.js来解决这个问题,如下所示
50% 0% /覆盖不重复,而不是50% 50% /覆盖不重复
function setBg($elem){
$this.css({
'background' : 'url('+src+') no-repeat 50% 50%',
'background-size':'cover'
});
});你觉得这件事还能搞砸别的东西吗?
https://stackoverflow.com/questions/74021502
复制相似问题