<formaction=""method="post"onsubmit="returncheckForm();"><inputtype="text"name="phone"placeholder="您的电话"id="phone"/><inputtype="submit"&n
jq模拟select下拉框,自定义option的css样式
option的样式没办法修改。因为option是html固有元素;因而无论怎么修改在浏览器上都是不起作用的。想修改option样式,只能通过div ul li模拟select功能;功能如下,具体细节可以自己再调节。<!doctypehtml><html><head><metacharset="utf-8"><title>Untitled&
jq 判断是否有图片,如有给父级添加class
<div><p><imgsrc="eisregen.jpg"/></p><p>12313131313</p><p><imgsrc=""/></p></div><scriptsrc="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
js / php 网站底部版权文字自动改变年份
js<script>document.write(newDate().getFullYear());</script>PHP<?phpechodate("Y");?>例:<pclass="copyright">Copyright©<script>document.write(newDate().getFullYear());</script><ahref="
js 特定日期全站变灰
明日清明,举国哀悼,不忘记每个因疫情逝去的人,在一些特殊的日子里,我们可能会用到这段代码。逝者已矣,生者如斯方法一判断当前日期 + css 的 filter 滤镜,由于要照顾各浏览器的兼容性,css 最好要写全。<script>$(document).ready(function(){vartoday=new&