![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
hello_world_Q
wx:19855357869
展开
-
css实现必填小红点
css实现必填小红点 /**必填红点 */ .required:after { content: '*'; color: red; position: absolute; margin-left: 4px; font-weight: bold; line-height: 1.8em; top: 6px;原创 2020-12-16 09:38:38 · 1613 阅读 · 0 评论 -
表单元素输入框 输入字母自动转大写
<input value="" class="toUp"/> CSS即可实现: .toUp { text-transform: uppercase; } js也可实现(有延迟): $('.toUp').keyup(function () { $(this).val($(this).val().toUpperCase()); });原创 2020-10-28 09:29:47 · 313 阅读 · 0 评论