以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 如何把秒改成红色并加大字体 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=183529) |
-- 作者:foxtablefanse -- 发布时间:2022/11/8 17:24:00 -- 如何把秒改成红色并加大字体 t_div = doc ument.getEle mentById(\'showtime\'); var now = new Date() t_div.innerHTML = now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds() + ""; setTimeout(time, 1000); |
-- 作者:有点蓝 -- 发布时间:2022/11/8 17:30:00 -- t_div.innerHTML = now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate() + " " + now.getHours() + ":" + now.getMinutes() + ":<span style=\'color:red;font-size:30px\'>" + now.getSeconds() + "</span>"; |
-- 作者:foxtablefanse -- 发布时间:2022/11/8 17:33:00 -- 谢谢! |