引导式测验 · 中等 等级

如何使用 AI 将设计图转化为代码测验

测试从设计到代码的提示、响应式比较、组件结构、可访问性检查以及基于屏幕截图的生成的限制。

问题 1 的 8

截图通常无法自行指定哪些信息?

预览每个问题8 问题

当您参加测验时,就会出现答案和解释。

  1. 截图通常无法自行指定哪些信息?
    • Hidden interaction states and responsive rules
    • Pixel colors
    • Visible element positions
    • The page's current viewport
  2. 为什么先从一个组件开始,而不是生成整个应用?
    • AI can only produce single components
    • It makes the result easier to inspect and correct
    • A full app cannot contain CSS
    • Components do not need testing
  3. 哪项检查有助于揭示仅在模型稿桌面宽度下有效的布局?
    • Change the editor theme
    • Rename every CSS class
    • Inspect narrower and wider viewport sizes
    • Remove real text
  4. 生成的按钮看起来正确,但没有可访问名称。应该修复什么?
    • Its border radius only
    • The screenshot file format
    • The page title color
    • Its semantic label and accessible behavior
  5. 何时应向模型提供现有的设计令牌?
    • When the project expects generated styles to match its established colors and spacing
    • Only after the code is deployed
    • Never, because tokens are images
    • Only when the page has no components
  6. What does a visual regression comparison establish?
    • That every interaction works
    • That the rendered images match at the tested conditions
    • That the page meets all accessibility criteria
    • That the component tree is maintainable
  7. Why use realistic content during layout review?
    • Real text guarantees WCAG conformance
    • Placeholder text disables responsive CSS
    • Long labels and actual text can change wrapping and spacing
    • It eliminates the need for keyboard testing
  8. Which request is most likely to preserve already-correct code after finding one mismatch?
    • Regenerate the entire application
    • Delete the component library
    • Replace all tokens with inline styles
    • Ask for a targeted adjustment and explain the mismatch