实用CSS样式
focus-with: 自己选中或者子元素选中 form-block:focus-within{ background: #eee; } has() .label span:has(+ input[data-required])::after { content: '*'; color: r
记录此分类下的每一次思考与沉淀
focus-with: 自己选中或者子元素选中 form-block:focus-within{ background: #eee; } has() .label span:has(+ input[data-required])::after { content: '*'; color: r