将属性从一个帧复制到另一个帧

时间:2022-09-24 18:39:23

I am having difficulties copying properties from one fram and create a similar one (See picture below). The picture to the left, flower-ish, Is the properties I want. I wanna add this to the image to the right ( blue one). I have tried using the google chrome edit component but I can't figure it out.

我在从一个框架复制属性时遇到困难并创建一个类似的框架(见下图)。左边的图片,花,是我想要的属性。我想将它添加到右侧的图像(蓝色)。我曾尝试使用谷歌浏览器编辑组件,但我无法弄清楚。

I only want the image to the right to have the same properties (size and frame) as the left image.

我只希望右边的图像具有与左图像相同的属性(大小和框架)。

The URL to this scenario

此方案的URL

将属性从一个帧复制到另一个帧

1 个解决方案

#1


0  

Looking your page, i think you should do something like this (I'm using jQuery).

看你的页面,我认为你应该做这样的事情(我正在使用jQuery)。

$(document).ready(function(){
  var img = $('.attachment-shop_catalog');
  var width = img.width();
  var height = img.height();

  //give an id or a class to identify your target img, i'm using id target-img 

  $('#target-img').css('width',width+'px');
  $('#target-img').css('height',height+'px');

});

#1


0  

Looking your page, i think you should do something like this (I'm using jQuery).

看你的页面,我认为你应该做这样的事情(我正在使用jQuery)。

$(document).ready(function(){
  var img = $('.attachment-shop_catalog');
  var width = img.width();
  var height = img.height();

  //give an id or a class to identify your target img, i'm using id target-img 

  $('#target-img').css('width',width+'px');
  $('#target-img').css('height',height+'px');

});