这段代码触发了以下投诉:
#!/usr/bin/perl
use strict;
use warnings;
my $s = "aaa bbb";
my $num_of_item = split(/\s+/, $s) ;
print $num_of_item;
当我运行代码时,Perl抱怨"Use of implicit split to @_ is deprecated“。我真的不知道这个问题的“背景”,所以我希望你能帮助我解释一下代码的问题。
我想知道这是否可行,能够将图像的背景位置设置到html文档的左上角,而不是它作为背景的元素的左上角。
伪代码
body {
background-image: url(someurlhere);
background-position: top left;
}
element {
background-image: url(sameurlhere);
background-position: top left /*Relative to body not element*/;
}
如果我需要为这个问题提供任何其他东西,请告诉我,我会修改它,但我相信它是相当直截了