Ask HN: LLM 也在为居中 div 犯难吗?

3作者: divan9 个月前
在过去的半年里,我大量使用 AI 编码助手来开发 Flutter 应用。最近,我不得不参与一个 Tailwind Web 项目,结果我惊讶地发现,它在布局/UI 方面经常出错。即使连接了 Puppeteer,可以访问原始 HTML 输出和截图,它仍然难以完成简单的对齐、居中等操作。 某种程度上,这就像著名的“用 CSS 居中 div”的挑战,但我很好奇,对于那些更经常使用 Web 技术栈的人来说,是否也有同样的体验。
查看原文
I used AI coding agents for the past half a year a lot with Flutter. Recently I had to work on the tailwind web project, and I was surprised how often it gets layout&#x2F;UI wrong. Even with puppeteer attached, haveing access to raw HTML output and screenshots, it&#x27;s still struggles to do simple alignment, centering things.<p>In a way, it mirrors famouse &quot;centering div in css&quot; challenge, but I wonder if it&#x27;s the same experience for other people who work with web stack more often.