Engineering Tools for AI

编程

页面修改用的 CSS 编辑术语

搜索页面修改时常用的 header、button、spacing、hover、responsive 等 CSS 与 UI 术语。

63 个项目

页面结构

Header

Header

含义

The top area of a page, usually holding the site title, navigation, theme controls, language controls, and menu button.

修改方向

Changing header padding, height, border, or position changes how tall and fixed the top area feels.

注意

A taller header can reduce the visible content area, especially on mobile.

相关 CSS

headerpaddingheightpositionborder-bottom

请求示例

Make the mobile header title smaller while keeping the header height the same.

页面结构

Footer

Footer

含义

The bottom area of a page, often used for links, legal text, contact information, or small navigation.

修改方向

Footer padding and border changes affect the amount of breathing room and the separation from the content above.

相关 CSS

footerpaddingborder-topmargin-top

请求示例

Add more top padding to the footer so it does not feel attached to the content.

页面结构

Section

Section

含义

A large content area that groups related content such as a hero, tools list, reference cards, or article block.

修改方向

Section padding changes the vertical rhythm of the page. Background changes make the section feel separate.

相关 CSS

sectionpadding-blockborder-topbackground

请求示例

Reduce the vertical padding of the tools section on mobile.

页面结构

Container

Container

含义

An inner wrapper that keeps page content from stretching too wide on large screens.

修改方向

Increasing max-width makes content wider. Increasing side padding keeps content away from screen edges.

相关 CSS

max-widthmargin-inlinepadding-inline

请求示例

Make the main container a little narrower on desktop.

页面结构

Card

Card

含义

A framed block that presents one repeated item, such as a tool, reference entry, or result.

修改方向

Card padding, border, radius, and shadow control how dense or prominent each item feels.

相关 CSS

borderborder-radiuspaddingbackgroundbox-shadow

请求示例

Make the reference cards more compact by reducing their padding.

页面结构

Panel

Panel

含义

A framed working area, usually holding controls, inputs, settings, or output.

修改方向

Panel spacing and layout changes affect how easy repeated tool use feels.

相关 CSS

borderbackgroundpaddingdisplay

请求示例

Align the panel controls in one row on desktop and stack them on mobile.

页面结构

Navigation

Navigation

含义

A group of links or buttons used to move between major pages or categories.

修改方向

Gap, alignment, and visibility rules change how the navigation behaves on desktop and mobile.

相关 CSS

navdisplaygapalign-items

请求示例

Hide the navigation links on small screens and keep the menu button visible.

页面结构

Menu

Menu

含义

A list of links or actions that opens from a button.

修改方向

Position, width, and z-index decide where the menu opens and whether it appears above other content.

注意

If the menu is placed in normal document flow, it can push the whole page down.

相关 CSS

positionrighttopz-indexwidth

请求示例

Make the menu open as a floating panel aligned to the right.

页面结构

Sidebar

Sidebar

含义

A vertical area at the left or right side of the page, often used for navigation or filters.

修改方向

Sidebar width and responsive rules decide whether it stays visible, collapses, or moves below content.

相关 CSS

asidewidthpositiongrid-template-columns

请求示例

Move the filter sidebar below the content on mobile.

页面结构

Hero

Hero

含义

The first large section of a page that introduces the main purpose or action.

修改方向

Hero padding, title size, and layout affect the first impression and how much content fits in the first viewport.

相关 CSS

paddingbackgroundmin-heightgrid

请求示例

Reduce the hero title size on mobile so the action buttons stay visible.

间距与尺寸

Padding

Padding

含义

Space inside an element, between the border and the content.

修改方向

Increasing padding-top adds more space above the content inside the element.

注意

More padding usually increases the visible size of the element.

相关 CSS

paddingpadding-toppadding-rightpadding-bottompadding-left

请求示例

Increase the top padding of the header slightly.

间距与尺寸

Margin

Margin

含义

Space outside an element, between it and neighboring elements.

修改方向

Increasing margin-bottom pushes the next element farther down.

相关 CSS

marginmargin-topmargin-rightmargin-bottommargin-left

请求示例

Add more margin between the hero section and the tools list.

间距与尺寸

Gap

Gap

含义

The space between items inside a flex or grid layout.

修改方向

Increasing gap spreads sibling items apart without adding extra space around the whole group.

相关 CSS

gaprow-gapcolumn-gap

请求示例

Reduce the gap between the theme button, language button, and menu button.

间距与尺寸

Width

Width

含义

The horizontal size of an element.

修改方向

A fixed width keeps the element stable. max-width lets it shrink on small screens.

相关 CSS

widthmin-widthmax-width

请求示例

Make the menu panel width match its longest item.

间距与尺寸

Height

Height

含义

The vertical size of an element.

修改方向

Fixed height can keep a header stable. max-height with overflow can keep dropdowns from becoming too tall.

相关 CSS

heightmin-heightmax-height

请求示例

Keep the header height stable while making the title smaller.

间距与尺寸

Max width

Max width

含义

The largest width an element is allowed to reach.

修改方向

Lowering max-width makes text lines shorter and panels narrower on large screens.

相关 CSS

max-widthwidth

请求示例

Set a max-width on the dropdown so it does not cover too much of the page.

间距与尺寸

Top / Right / Bottom / Left

Top / Right / Bottom / Left

含义

Position offsets used with positioned elements.

修改方向

right: 0 aligns a floating panel to the right edge of its positioned parent.

相关 CSS

toprightbottomleftinset

请求示例

Align the open menu panel to the right side of the header controls.

文字

Font size

Font size

含义

The size of text.

修改方向

Reducing font-size helps long labels fit in tight spaces such as mobile headers.

相关 CSS

font-sizetext-smtext-lg

请求示例

Make the mobile site title smaller but keep it on one line.

文字

Font weight

Font weight

含义

How thick or bold the text appears.

修改方向

Increasing font-weight makes labels more prominent without changing their size.

相关 CSS

font-weightfont-boldfont-semibold

请求示例

Make the category labels a little bolder.

文字

Line height

Line height

含义

The vertical space each line of text occupies.

修改方向

Increasing line-height makes paragraphs easier to read. Reducing it makes compact UI labels tighter.

相关 CSS

line-heightleading

请求示例

Increase the paragraph line-height in the hero description.

文字

Letter spacing

Letter spacing

含义

The space between individual letters.

修改方向

Small positive spacing can help uppercase labels feel clearer. Too much spacing can make Korean text awkward.

相关 CSS

letter-spacingtracking

请求示例

Remove negative letter spacing from compact buttons.

文字

Text align

Text align

含义

The horizontal alignment of text inside its container.

修改方向

Right-aligned menu text can make a floating menu feel attached to the right edge.

相关 CSS

text-align

请求示例

Right-align the menu item text inside the menu panel.

文字

Wrap / No wrap

Wrap / No wrap

含义

Whether long text can move to the next line or must stay on one line.

修改方向

No-wrap keeps a header stable, while wrapping can show more text but usually increases height.

相关 CSS

white-spaceword-breakoverflow-wrap

请求示例

Keep the mobile title on one line and truncate the overflow.

文字

Truncate / Ellipsis

Truncate / Ellipsis

含义

A way to cut off overflowing single-line text and show dots.

修改方向

Truncation prevents layout breakage when labels are longer than expected.

相关 CSS

overflowtext-overflowwhite-space

请求示例

Truncate the site title on very small screens.

颜色与背景

Color

Color

含义

The color of text or icons.

修改方向

Changing color affects readability and visual priority.

相关 CSS

color

请求示例

Make the selected language text visible in dark mode.

颜色与背景

Background

Background

含义

The color or image behind an element's content.

修改方向

Background changes can separate panels, highlight active states, or improve contrast.

相关 CSS

backgroundbackground-color

请求示例

Use a darker background for the selected language item in dark mode.

颜色与背景

Opacity

Opacity

含义

How transparent an element is.

修改方向

Lower opacity makes elements quieter, but it can reduce readability.

相关 CSS

opacityrgbacolor-mix

请求示例

Make disabled controls look dimmer without making the text unreadable.

颜色与背景

Gradient

Gradient

含义

A smooth transition between two or more colors.

修改方向

Subtle gradients can add depth, but strong gradients can make tools feel less practical.

相关 CSS

linear-gradientradial-gradientbackground-image

请求示例

Keep the hero background subtle and avoid a strong gradient.

颜色与背景

Accent color

Accent color

含义

A repeated highlight color used for labels, active states, or important actions.

修改方向

Changing the accent color changes the page's visual identity and emphasis.

相关 CSS

colorbackgroundborder-coloraccent-color

请求示例

Use the same green accent for category labels and active chips.

颜色与背景

Contrast

Contrast

含义

The difference between foreground and background colors.

修改方向

Higher contrast improves readability, especially in dark mode and on mobile screens.

相关 CSS

colorbackground-color

请求示例

Increase the contrast of dropdown items in dark mode.

边框与形状

Border

Border

含义

A line around an element.

修改方向

Border width and color control how strongly a box or button is separated from the background.

相关 CSS

borderborder-colorborder-widthborder-style

请求示例

Make the menu panel border slightly darker in dark mode.

边框与形状

Border radius

Border radius

含义

How rounded the corners of a box or button are.

修改方向

A small radius feels practical and compact. A large radius feels softer and more playful.

相关 CSS

border-radius

请求示例

Keep cards at an 8px border radius.

边框与形状

Box shadow

Box shadow

含义

A shadow around an element that makes it feel raised above the page.

修改方向

Stronger shadows make floating menus or modals feel layered. Too much shadow can feel heavy.

相关 CSS

box-shadow

请求示例

Add a subtle shadow to the floating menu panel.

边框与形状

Outline

Outline

含义

A line shown around an element, often when it is focused by keyboard navigation.

修改方向

A clear outline helps keyboard users know which control is active.

相关 CSS

outlineoutline-offset:focus-visible

请求示例

Keep a visible focus outline on icon buttons.

边框与形状

Divider

Divider

含义

A line used to separate sections or groups.

修改方向

A divider can make category boundaries clearer without adding much visual weight.

相关 CSS

border-topborder-bottomhr

请求示例

Add subtle dividers between menu categories.

布局与位置

Display

Display

含义

The basic layout mode of an element.

修改方向

display: none hides an element. flex and grid arrange child items.

相关 CSS

displaydisplay: nonedisplay: flexdisplay: grid

请求示例

Hide the desktop navigation on mobile screens.

布局与位置

Flex

Flex

含义

A layout method for arranging items in a row or column.

修改方向

flex-direction: column stacks items vertically. flex-wrap allows items to move to the next line.

相关 CSS

display: flexflex-directionflex-wrapgap

请求示例

Keep the header controls in a flex row.

布局与位置

Grid

Grid

含义

A layout method for arranging content in rows and columns.

修改方向

Changing grid columns controls how many cards appear per row.

相关 CSS

display: gridgrid-template-columnsgrid-columngap

请求示例

Show four tool cards per row on wide desktop screens.

布局与位置

Align items

Align items

含义

How items are aligned on the cross axis inside flex or grid.

修改方向

align-items: center vertically centers controls in a header row.

相关 CSS

align-itemsplace-items

请求示例

Vertically center the title and header buttons.

布局与位置

Justify content

Justify content

含义

How items are distributed on the main axis inside flex or grid.

修改方向

justify-content: space-between pushes groups to opposite sides.

相关 CSS

justify-contentjustify-itemsmargin-left: auto

请求示例

Keep the title on the left and controls on the right.

布局与位置

Position

Position

含义

How an element is placed in relation to the page or another element.

修改方向

position: absolute lets a dropdown float without pushing the page layout down.

相关 CSS

positionrelativeabsolutefixedsticky

请求示例

Make the menu panel absolute so it does not push the page down.

布局与位置

Z-index

Z-index

含义

The stacking order of positioned elements.

修改方向

A higher z-index can place dropdowns above page content.

注意

z-index only works predictably when positioning and stacking contexts are considered.

相关 CSS

z-indexposition

请求示例

Raise the language dropdown above the menu panel.

布局与位置

Overflow

Overflow

含义

What happens when content is larger than its container.

修改方向

overflow-y: auto allows a long menu to scroll instead of extending beyond the screen.

相关 CSS

overflowoverflow-xoverflow-ymax-height

请求示例

Make long dropdown menus scroll inside a max-height.

响应式

Breakpoint

Breakpoint

含义

A screen width where the layout changes.

修改方向

Changing a breakpoint decides whether tablets behave more like mobile or desktop.

相关 CSS

@mediasmmdlgxl

请求示例

Treat tablets as desktop for the top navigation.

响应式

Mobile

Mobile

含义

Styles intended for small phone-sized screens.

修改方向

Mobile styles often reduce font size, stack columns, and keep controls touch-friendly.

相关 CSS

@mediamax-widthsm

请求示例

On mobile, stack the cards in one column.

响应式

Desktop

Desktop

含义

Styles intended for wider laptop or desktop screens.

修改方向

Desktop styles can use more columns, horizontal navigation, and wider content containers.

相关 CSS

@mediamin-widthlgxl

请求示例

On desktop, keep the category navigation visible in the header.

响应式

Viewport

Viewport

含义

The visible area of the browser or device screen.

修改方向

Viewport units make sizes relative to the visible screen.

相关 CSS

vwvh100vw100vh

请求示例

Limit the menu width to the viewport so it does not overflow on phones.

响应式

Responsive

Responsive

含义

A design that adjusts to different screen sizes.

修改方向

Responsive rules can make the same component horizontal on desktop and vertical on mobile.

相关 CSS

@mediaclampmin()max()

请求示例

Make the controls responsive without changing their order.

交互状态

Hover

Hover

含义

The state when a mouse pointer is over an element.

修改方向

Hover styles can change background, text color, border, or shadow to show that an item is interactive.

注意

Touch devices do not have reliable hover behavior, so important actions should also work by click or tap.

相关 CSS

:hoverbackgroundcolortransition

请求示例

Add a background color change when hovering over menu items.

交互状态

Active

Active

含义

The short state while a button or link is being pressed.

修改方向

Active styles can make buttons feel tactile with a small color or position change.

相关 CSS

:activetransformbackground

请求示例

Add a slight pressed effect to toolbar buttons.

交互状态

Focus

Focus

含义

The state when an input, button, or link is currently selected for keyboard or typing.

修改方向

Focus styles make keyboard navigation visible and accessible.

相关 CSS

:focus:focus-visibleoutline

请求示例

Make the search input focus ring match the accent color.

交互状态

Disabled

Disabled

含义

A state where a control is visible but cannot be used.

修改方向

Disabled styles often reduce contrast and remove pointer interaction.

相关 CSS

:disabledopacitycursorpointer-events

请求示例

Make disabled buttons visibly inactive but still readable.

交互状态

Selected

Selected

含义

The state of the currently chosen item in a list, tab group, or menu.

修改方向

Selected styles usually need stronger background or text color than normal items.

相关 CSS

aria-currentdata-statebackgroundcolor

请求示例

Make the selected category chip clearly different from the others.

交互状态

Open / Closed

Open / Closed

含义

Whether a dropdown, menu, or accordion panel is currently visible.

修改方向

Open and closed states need clear indicators such as plus/minus icons or arrow rotation.

相关 CSS

aria-expandeddisplayheightvisibility

请求示例

Keep all menu categories closed by default.

UI 组件

Button

Button

含义

A control that performs an action when clicked or tapped.

修改方向

Button padding, border, color, and states determine how easy and important it feels.

相关 CSS

buttonpaddingborderbackgroundcursor

请求示例

Make the primary action button more prominent than the secondary button.

UI 组件

Icon button

Icon button

含义

A button represented mainly by an icon instead of text.

修改方向

Stable width and height prevent icon buttons from shifting as states change.

相关 CSS

buttonwidthheightaria-labeldisplay: grid

请求示例

Keep the menu icon button square and aligned with the language button.

UI 组件

Dropdown

Dropdown

含义

A floating list that appears after pressing a button or select control.

修改方向

Dropdown position, width, max-height, and z-index control placement and layering.

相关 CSS

positiontoprightz-indexbox-shadow

请求示例

When the language dropdown opens, close the site menu.

UI 组件

Accordion

Accordion

含义

A section that can be opened or closed to show or hide its content.

修改方向

Accordions make long menus shorter by keeping categories closed until needed.

相关 CSS

aria-expandedheightdisplayoverflow

请求示例

Add open and close behavior to each menu category.

UI 组件

Tabs

Tabs

含义

A control for switching between related views without leaving the page.

修改方向

Selected tab styling must clearly show which view is active.

相关 CSS

role=tablistdisplayborderbackground

请求示例

Make the active tab background darker than inactive tabs.

UI 组件

Modal

Modal

含义

A focused overlay panel that appears above the page.

修改方向

Modal width, backdrop, and z-index control how strongly it interrupts the page.

相关 CSS

dialogposition: fixedinsetz-indexbackdrop

请求示例

Center the modal and keep it narrower than the viewport.

UI 组件

Tooltip

Tooltip

含义

A small hint shown near a control, often on hover or focus.

修改方向

Tooltips help explain icon-only buttons without adding permanent text.

相关 CSS

positiontitlearia-describedbyz-index

请求示例

Add a tooltip that labels the menu icon button.

UI 组件

Input

Input

含义

A field where the user types text or values.

修改方向

Input padding, border, placeholder color, and focus style affect comfort and clarity.

相关 CSS

inputborderpaddingplaceholder:focus

请求示例

Make the search input full width and easier to tap on mobile.

UI 组件

Badge / Chip

Badge / Chip

含义

A small rounded label or filter control.

修改方向

Chip size, radius, and active color affect how scannable filters feel.

相关 CSS

border-radiuspaddingbackgroundfont-size

请求示例

Make active category chips visually stronger.