【问题标题】:Changing styles in Zend Framework 2 paginationZend Framework 2 分页中的更改样式
【发布时间】:2016-05-03 06:03:16
【问题描述】:

我正在尝试替换 Zend Framework 2 分页中的默认样式以使用 Twitter Boostrap 的分页样式。我在更改样式时遇到了麻烦,因为某些元素已关闭,我不知道为什么。这是我的代码:

    <nav>
<ul class="pagination">
<?php if ($this->pageCount): ?>
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
   <li class="previous"><a href="<?php echo $this->url($this->route, array('page' => $this->previous)); ?>">
   <span aria-hidden="true">&laquo;</span></a></li>
<?php else: ?>
  <li class="previous disabled">&laquo;</span> 
<?php endif; ?>

<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <li class="active"><a href="<?php echo $this->url($this->route, array('page' => $page)); ?>">
        <?php echo $page; ?>
    </a></li>
  <?php else: ?>
   <?php echo $page; ?>
  <?php endif; ?>
<?php endforeach; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <li class="next"><a href="<?php echo $this->url($this->route, array('page' => $this->next)); ?>">
    <span aria-hidden="true">&raquo;</span></a></li>
<?php else: ?>
  <li class="next disabled">&raquo;</li
<?php endif; ?>
<?php endif; ?>
</ul>
</nav>

如果有帮助,这里是我想说的截图。

如您所见,元素已关闭。任何帮助将不胜感激。

谢谢!

【问题讨论】:

    标签: css twitter-bootstrap zend-framework pagination


    【解决方案1】:

    没关系修复它,没有使用正确的属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-15
      • 1970-01-01
      相关资源
      最近更新 更多