我正在尝试使用=IMPORTHTML
,但无法使其正常工作。
这是我到目前为止所拥有的
=INDEX(IMPORTHTML("https://finviz.com/screener.ashx?v=111&f=cap_mid,fa_curratio_o1,fa_pe_u15,fa_roe_o20,fa_roi_o15&ft=2","table",15),3,3)
我确定表号,但是我不断收到错误消息,说我的索引值无效,因为它们应该在1到0之间,这对我来说没有意义。
此外,我希望导入整个表,如果我仅使用=IMPORTHTML
,它说我需要=INDEX
函数。有没有办法导入整个东西,还是我必须手动完成?
答案 0 :(得分:0)
- (CALayer *)layerForType:(NSString*) type
{
NSRect frame = [self frame];
// foreground layer
if (type == IKImageBrowserCellForegroundLayer)
{
// no foreground layer on place holders
if ([self cellState] != IKImageStateReady)
{
return nil;
}
// create a foreground layer that will contain several childs layer
CALayer *layer = [CALayer layer];
layer.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
NSRect imageContainerFrame = [self imageContainerFrame];
NSRect relativeImageContainerFrame =
NSMakeRect(imageContainerFrame.origin.x - frame.origin.x,
imageContainerFrame.origin.y - frame.origin.y,
imageContainerFrame.size.width,
imageContainerFrame.size.height);
CALayer *likeDisableLayer = [CALayer layer];
setBundleImageOnLayer(likeDisableLayer, CFSTR("LikeIcon_disable.png"));
likeDisableLayer.frame = CGRectMake((frame.size.width/2)-5, frame.size.height - 25, 24, 30);
[layer addSublayer:likeDisableLayer];
return layer;
}
return nil;
}