随笔分类 -  前端相关

摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalabl 阅读全文
posted @ 2024-03-06 23:36 大番薯没有心 阅读(99) 评论(0) 推荐(0)
摘要:html <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf 阅读全文
posted @ 2023-12-29 15:48 大番薯没有心 阅读(60) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <title>表格斜线</title> <style> html { height: 100%; } body { height: calc(100% - 16px); } .wrap { position: absolute; top: 阅读全文
posted @ 2022-06-22 14:02 大番薯没有心 阅读(504) 评论(0) 推荐(0)
摘要:js if (document.getElementById("map")) { console.log("存在"); console.log(document.getElementById("map")); } else { console.log("不存在"); console.log(docu 阅读全文
posted @ 2020-09-24 11:29 大番薯没有心 阅读(522) 评论(0) 推荐(0)
摘要:KindEditor官网地址:http://kindeditor.net/about.php 效果图 第一步: 项目添加LitJSON.dll引用 位置:kindeditor/asp.net/bin/LitJSON.dll 第二步: 修改KindEditor上传图片文件一般处理程序的图片位置 项目根 阅读全文
posted @ 2020-08-06 17:28 大番薯没有心 阅读(228) 评论(0) 推荐(0)
摘要:效果图 scroll_table.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>表格滚动</title> <script src="jquery.min.1.8.3.js" type="text/javascript 阅读全文
posted @ 2020-08-06 15:42 大番薯没有心 阅读(442) 评论(0) 推荐(0)
摘要:问题出现场景:为什么要用 jquery给input赋值,为什么input带有display:none 在做字典查询的时候,查询参数有字典类型的treeSelect 下拉框,treeSelect渲染后,会自动给input加上display:none,(此时input type属性是text)选中后会给 阅读全文
posted @ 2019-11-28 16:49 大番薯没有心 阅读(1328) 评论(0) 推荐(0)
摘要:​​ obj = document.getElementsByName("dk_tj"); var longtxt = ""; for (k in obj) { if (obj[k].checked) longtxt += obj[k].value + ','; } if (longtxt.leng 阅读全文
posted @ 2019-05-28 10:25 大番薯没有心 阅读(1742) 评论(0) 推荐(0)
摘要:原效果:头部高度偏高,tab标签不太好看 ​ 修改后:缩小高度,调整tab标签css样式 ​ 百度网盘链接:https://pan.baidu.com/s/1qknPNAMGL7BFUIsleOF9MA 提取码: hpxy 阅读全文
posted @ 2019-04-12 13:03 大番薯没有心 阅读(561) 评论(0) 推荐(0)
摘要:​ 错误之源: $("a.consult").click(function () { lib_consult_html = $('#consult-html').html(); /*复制了一份div*/ layer.open({ type: 1, title: false, closeBtn: 0, 阅读全文
posted @ 2018-11-26 23:00 大番薯没有心 阅读(214) 评论(0) 推荐(0)
摘要:问题由来 前段时间搭的一个Discuz论坛上挂了2个广告横幅,网站的话收录还不错,然后客户就反应百度app上无法看到横幅。 由于我没有下载百度app,看不到效果我将信将疑,因为电脑,手机浏览器都是ok的。 然后我下载了百度app,发现真的看不到横幅,原因是百度app默认开启了广告屏蔽了。 可能是它觉 阅读全文
posted @ 2018-07-14 09:37 大番薯没有心 阅读(273) 评论(0) 推荐(0)
摘要:需要修改的3个地方: \config\config_global.php \config\config_ucenter.php \uc_server\data\config.inc.php 阅读全文
posted @ 2018-06-12 10:52 大番薯没有心 阅读(191) 评论(0) 推荐(0)
摘要:方法一:调用本地已安装的QQ进行会话 其实这么写会有一个问题,如果对方不是你的好友,你需要添加好友等对方验证后才能发起对话。 方法二:腾讯的QQ在线-QQ通信组件 使用客服QQ登陆:http://wp.qq.com/consult.html 开通你的QQ通讯组件,一般登录进去就算开通了。 获得生成的 阅读全文
posted @ 2018-06-12 10:33 大番薯没有心 阅读(373) 评论(0) 推荐(0)
摘要:今天试了下在html网页中加入背景音乐并设置为循环播放。一开始用<embed>标签,设置loop="true", 但是结果发现在IE浏览器可以,但是在chrome浏览器却无法实现循环, 播放完一次自动停止了。代码如下: <embed src="1.mp3" hidden="true" loop="t 阅读全文
posted @ 2018-05-23 17:09 大番薯没有心 阅读(1283) 评论(5) 推荐(0)
摘要:JS代码 最终效果 阅读全文
posted @ 2017-11-17 15:08 大番薯没有心 阅读(915) 评论(0) 推荐(0)