Drupal View 问题: Displaying results in two columns?

标签 drupal drupal-6 drupal-views

我是 drupal 的新手,我有一个关于 View 的问题:

我正在构建一个员工目录,需要在两列中显示结果,例如:

记录1 记录2

记录3 记录4

记录 5 记录 6 。 。 .

我怎样才能做到这一点?

为了更进一步,我希望每条记录的格式如下:

图像名称

     TITLE

我不知道从哪里开始。如有任何帮助,我们将不胜感激!

最佳答案

您可以:

  • 选择样式:网格(这将为您提供一个包含任意行数的表格)。
  • 使用 CSS。最快的方法: <pre>.view-id-$VIEWNAME .views-row{float: left; width: 40%; }</pre> 还添加一些边距底部和固定高度。另外,您可能会发现添加以下内容很有用: <pre>.view-id-$VIEWNAME .view-content{overflow: hidden;}</pre>

关于Drupal View 问题: Displaying results in two columns?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2858676/

相关文章:

德鲁帕尔 6 : How to create a view which displays all articles written by all members of a group

php - 如何在drupal中记录错误消息

.htaccess - htaccess 将页面从子域重定向到主域

drupal - theme($hook, $variables = array()) 以及它在 Drupal 7 中的工作原理

drupal - 我的 Drupal View 寻呼机在哪里?

Drupal View / block 不显示

drupal - 在Drupal中,如何设置node-[content type].tpl.php显示404错误?

drupal - 什么时候不使用 Drupal 节点?

php - 德鲁巴 : File upload required?

Drupal View 公开过滤器: Taxonomy Select List?