如何在标题下创建两个矩形

时间:2016-09-22 13:21:13

标签: html css wordpress

我是关于wordpress的新手,但我想在我的页面的标题下放置两个矩形,其中每个矩形在另一个页面链接。我怎么能这样做?我必须用它做什么?

2 个答案:

答案 0 :(得分:0)

在header.php中设置两个具有相同宽度的div,并在div下面给出[DEBUG] 2016-09-22T13:57:40.965Z 5b770867-80cc-11e6-b5b8-018d2de39616 ConnectionError received when sending HTTP request. Traceback (most recent call last): File "/var/runtime/botocore/endpoint.py", line 174, in _get_response proxies=self.proxies, timeout=self.timeout) File "/var/runtime/botocore/vendored/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/var/runtime/botocore/vendored/requests/adapters.py", line 419, in send raise ConnectTimeout(e, request=request) ConnectTimeout: HTTPSConnectionPool(host='firehose.us-east-1.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPSConnection object at 0x7fbbc4c92c10>, 'Connection to firehose.us-east-1.amazonaws.com timed out. (connect timeout=60)')) 属性以进行重定向。

答案 1 :(得分:0)

正如之前的回答所说,将这些放在header.php中并插入div中你想要的任何内容。

#define IMG_TAG 1000
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"MyCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

    // Configure the cell...
    cell.textLabel.text = @"test.....";
    UIImage * img = [UIImage imageNamed: @"sampleImage"];

    UIImageView * customImageView = (UIImageView*) [cell viewWithTag: IMG_TAG];
    // two cases:
    // 1) we got a "recycled" cell, so we already have an image view added
    // 2) we got a "new" cell, so we must create, add image view AND TAg
    // in both cases we will set image

    if (customImageView){
        // case 1
        // nothing special
    }else{
        // case 2:
        // add and tag:
        customImageView = [[UIImageView alloc]initWithFrame:CGRectMake(100, 2, 30, 30)];
        [cell addSubview: customImageView];
        customImageView.tag = IMG_TAG;
    }

    customImageView.image = img;
    return cell;
}
相关问题