随笔分类 -  HTML(H5)

HTML的一些知识
摘要:###静态资源路径应该是http开头,访问的时候变成了https开头,导致找不到资源。 ##原因是index.html的一项默认配置,注释掉就好了 阅读全文
posted @ 2023-03-23 16:39 huihuihero 阅读(367) 评论(0) 推荐(0) 编辑
摘要:####https://blog.csdn.net/weixin_44169843/article/details/128454598 <input enterkeyhint="enter"> <input enterkeyhint="done"> <input enterkeyhint="go"> 阅读全文
posted @ 2023-03-22 10:35 huihuihero 阅读(71) 评论(0) 推荐(0) 编辑
摘要:####1、在图片中标注usemap <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap"> ####2、定义map <map name="planetmap"> <area shape=" 阅读全文
posted @ 2022-07-08 09:51 huihuihero 阅读(1439) 评论(0) 推荐(0) 编辑
摘要://识别并转换文本里的超链接 transSlink(value){ let reg = /(http:\/\/|https:\/\/|www)((\w|=|\?|\.|\/|&|~|-|[\u200B-\u200D\uFEFF])+)/g; let text = value.replace(reg, 阅读全文
posted @ 2022-02-18 16:59 huihuihero 阅读(172) 评论(0) 推荐(0) 编辑
摘要:##方案一:使用pdfjs插件将pdf嵌套在页面中的某个位置 ####提示: 1、不兼容IE及兼容模式下的360浏览器(极速模式可以兼容),以上浏览器请自行为用户设置不兼容提醒 2、canvas画布是浮动在页面元素之上的,请知悉 3、这里pdf文件由后端接口返回,如:http://192.168.1 阅读全文
posted @ 2020-05-14 14:05 huihuihero 阅读(5038) 评论(0) 推荐(0) 编辑
摘要:`` 阅读全文
posted @ 2020-02-10 16:17 huihuihero 阅读(266) 评论(0) 推荐(0) 编辑
摘要:cookie localStorage sessionStorage localstorage设置过期时间 阅读全文
posted @ 2019-12-18 10:52 huihuihero 阅读(298) 评论(0) 推荐(0) 编辑
摘要:请求后端的付款接口用到了,记录一下 `https://segmentfault.com/a/1190000019099536` 阅读全文
posted @ 2019-12-10 09:52 huihuihero 阅读(194) 评论(0) 推荐(0) 编辑
摘要:什么是iframe? iframe注意事项 使用(点击a链接切换不同的iframe页面) 使用(高度自适应)——必备条件:不可以跨域,不可以是本地文件(若跨域或为本地网页,则iframe高度自适应不生效) 知识点(如何判断元素是否加载完毕) 阅读全文
posted @ 2019-12-02 17:06 huihuihero 阅读(1207) 评论(0) 推荐(0) 编辑
摘要:基本代码 方法 知识点 canvas显示是在浏览器2个px之间的,各占0.5px,比如线条本来默认的是黑色,1px宽。但是由于其显示方式,浏览器的2个px各占0.5px,浏览器会自动填充满,因此线条宽看起来就是2px,而且颜色会因为填充而导致变浅,变成灰色。若想精准显示,则手动调整0.5px便可。 阅读全文
posted @ 2019-08-14 11:13 huihuihero 阅读(246) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示