CSS:好玩的‘僞類’系列之——(:required)

:required 定義:指選擇器在表單元素是必填項時設置指定樣式。只適用於表單元素: input, select 和 textarea。css 觸發條件:當設置表單元素爲必填項時,修改樣式html 兼容:IE十、Opera10如下不支持ui 舉個栗子url html代碼:code <form> <label for="url_input">非必填項:</label> <input typ
相關文章
相關標籤/搜索