随笔分类 - HTML
摘要:使用HTML: <input type="text" name="" oninput="value=value.replace(/[^\d]/g,'')"> 使用JS: /* html */ <input type="text"; style="ime-mode:disabled"/* 禁止切换输入
阅读全文
摘要:html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>地图找
阅读全文
摘要:实现效果: map.js: (function (win) { function SurroundMap(mapId, lng, lat, searchCallback, options = {}) { // 创建Map实例 let _this = this; let map = new BMap.
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>百度地图预研</t
阅读全文
摘要:官方提供的分享插件进行分享,在官网里已经找不到文档了,但插件还是能用的。 一、代码结构 分享代码可以分为三个部分:HTML、设置和js加载 html: <div id="share"> <div class="bdsharebuttonbox" data-tag="share_1"> <a clas
阅读全文
摘要:html: <body> <div class="login-wrap"> <div class="box-login"> <div class="login-form"> <dt class="login-tab"> <span class="actived">手机动态码登录</span> <sp
阅读全文
摘要:解决方法:这个依靠JS修改HTML的FONT-SIZE值实现.如下: $(window).resize(function ()// 绑定到窗口的这个事件中 { var whdef = 100/1920;// 表示1920的设计图,使用100PX的默认值 var wH = window.innerHe
阅读全文
摘要:Drag and Drop Drag and drop is a very common feature. It is when you "grab" an object and drag it to a different location. In HTML5, drag and drop is
阅读全文
摘要:表单: 在html4中,表单内的从属元素必须写在表单内部。在html5中,可以吧他们书写在页面任何位置,然后指定form属性,属性值为表单ID,这样就指定表单了。 formaction,formmethod,formentype 表单required and labels: control属性 da
阅读全文
摘要:1、HTML5 新元素 HTML5提供了新的元素来创建更好的页面结构: <article>: 定义页面独立的内容区域。 <aside>: 定义页面的侧边栏内容(1、放在article元素中使用,2、全局使用侧边栏)。 <bdi>: 允许您设置一段文本,使其脱离其父元素的文本方向设置。 <comman
阅读全文