我在wordpress主题的基础上使用制表符时遇到问题...原始代码有4个水平制表符,我需要添加第五个元素...但是当我添加第五个元素时...第五个元素在下方垂直对齐第一个标签...
这是原始代码:
<div class="content row info active" id="panel2">
<?php query_posts('p=35'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="large-12 columns thu">
<dl class="row content tabs small-6 large-centered columns" data-tab>
<dd><a href="#cabernetsauvignon"><span class="link">Cabernet Sauvignon</span></a></dd>
<dd><a href="#merlot"><span class="link">Merlot</span></a></dd>
<dd><a href="#chardonnay"><span class="link">Chardonnay</span></a></dd>
<dd><a href="#sauvignonblanc"><span class="link">Sauvignon Blanc</span></a></dd></dl>
<?php the_post_thumbnail('full'); ?>
</div>
<div class="large-6 columns txt">
<?php the_content(); ?>
</div>
</div>
<?php endwhile;?>
这是我的零钱
<div class="content row info active" id="panel2">
<?php query_posts('p=35'); ?>
<?php while (have_posts()) : the_post(); ?>
<dl class="row content tabs small-6 large-centered columns" data-tab>
<dd><a href="#cabernetsauvignon"><span class="link">Cabernet Sauvignon</span></a></dd>
<dd><a href="#merlot"><span class="link">Merlot</span></a></dd>
<dd><a href="#chardonnay"><span class="link">Chardonnay</span></a></dd>
<dd><a href="#sauvignonblanc"><span class="link">Sauvignon Blanc</span></a></dd>
<dd><a href="#sauvignonblanc"><span class="link">Carmenere</span></a></dd></dl>
<?php the_post_thumbnail('full'); ?>
</div>
<div class="large-6 columns txt">
<?php the_content(); ?>
</div>
</div>
<?php endwhile;?>
我如何正确添加第五个元素...水平对齐呢?
答案 0 :(得分:0)
$elements = $driver->findElements(WebDriverBy::xpath( '//*[@id="ctl00_ContentBody_grvStudentResult"]/tbody/tr/td/span/a'));
$links = [];
foreach ($elements as $element) {
$links[] = $element->getAttribute('href');
}
foreach($links as $link)
{
$rawPage = $driver->get($link);
}
创建一个新行,它应该是一列/单元格