指数

使用列表元素创建内容的编号或项目符号列表。

The index component can be utilized to craft enumerated or bulleted records.

在本教程中:

  1. Include a catalog
  2. Determine the list style
  3. Integrate content into a catalog
  4. Design a catalog

Include a catalog

The Index element symbol.

To integrate an index element into your website, select the 插入 tab (keyboard shortcut: A) and drag an 指数 onto the Webflow canvas.

The catalog is comprised of the primary element and three catalog items.

Determine the list style

Based on the configurations, the main catalog element will either be as an unordered (bulleted) catalog or as an ordered (numbered) catalog. By default, the catalog is initially created as unordered, displaying bullet points to the left of each catalog item. You can toggle between ordered and unordered catalogs using 2 methods:

  1. Click on the main catalog element and press 进入
  2. Click on the main catalog element and navigate to the Settings tab > Catalog settings, then modify the type
The unordered and ordered Types are highlighted in Catalog settings.

You can also eliminate the bullets and numbers in the catalog settings by selecting no bullets.

The No bullets Style is highlighted in the Catalog settings.

Add content into a catalog

By default, the catalog items do not contain any predetermined content. This allows the catalog items to accommodate a variety of content types such as titles, paragraphs, images, videos, and even other catalogs. To incorporate content into a catalog, simply drag the desired content into a catalog item. Alternatively, you can double-click within a catalog item to start typing if plain text is all that is required. Another method to enter text edit mode is to select the catalog item and press 进入/返回.

In the top picture, an image is added to the first catalog item of an unordered catalog. In the bottom picture, the words “Amazing,” “Wonderful,” and “Spectacular” are added to three catalog items of an unordered catalog.

Embed catalogs

You can embed catalogs by inserting a catalog within a catalog 物品 (catalog elements cannot be nested).

Nested catalogs inside of catalog items.

To nest a catalog within a catalog item:

  1. 拖动 指数 来自 Insert tab 到画布上
  2. Embed a sub 指数 within a catalog item of the parent 指数
  3. Add a text element (paragraph, text block, header, etc.) in the catalog item of the parent 指数 component, above the child 指数
Point to note: Ensure you establish the framework of the embedded list before appending text to the catalog item. An embedded list cannot be placed within a parent catalog item after the parent catalog item is edited (although you can add an 元素 to the parent list item and still embed a child list afterwards).
An annotated bullet point list and a text section are enclosed inside the initial item of a numbered list.
In the Navigator, a list element and a paragraph element are placed inside the first list item of a parent list element.

Add new list elements

To incorporate a new item into the list, opt for an existing item copy and paste. Alternatively, right-click a listed item and choose 复制 from the provided menu.

The Replicate alternative is highlighted in the menu that appears following right-clicking on a listed item.

Design a list

You have the option to style both the list and its items using the Style panel.

清单

The primary list element — the ordered list or unordered list — can be styled by creating a class or modifying the tag. Upon applying styles to the All listings tag or All non-ordered listings tag, you will be defining the standard styling for these elements across your site.

  1. Choose the primary 清单 元素
  2. 使用权 样式面板 > 选择器字段
  3. 选择 All ordered listings (或者 All non-ordered listings)
  4. Customize your styles
The All non-ordered listings tag is highlighted in the Selector field dropdown in the Style panel.

To adjust the space where the bullets (or numerals) are placed, select the list and modify the left padding.

In the left image, a 52-pixel left padding is added to three listed items on the canvas. The right image shows 52 pixels of left padding in the Spacing category of the Style panel.

Listing point

You can assign the same class to all items on the list for a unified appearance. Typically, adjusting the lower margin is done to insert space between list items while the left margin is altered to create distance between text and the bullet or numeral.

A "Primary list item" class is added to a list item and shown in the Selector field.

Default styles can be established on all list items across your website by adjusting the All list items tag:

  1. 选择一个 项目清单
  2. 使用权 样式面板 > 选择器字段
  3. 选择 All list items 标签
  4. Insert styles
笔记: 修改 All list items tag will impact all list items regardless of their placement within an ordered or unordered list.
The All list items tag is selected and displayed in the Style panel’s Selector field.
麦宜云
Ewan Mak 的最新帖子 (查看全部)