会员
T恤
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
决天
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2024年12月26日
页面莫名的多一块空白记录
摘要: p标签定高,然后文字超长了也会引发该问题,效果如下: 修改后:
阅读全文
posted @ 2024-12-26 13:54 决天
阅读(15)
评论(0)
推荐(0)
2021年9月6日
文本不让选中的实现
摘要: css: div { -moz-user-select:none; -webkit-user-select:none; user-select:none; } js: // 先取到标签对象if(document.all){ //for ie obj.onselectstart= function()
阅读全文
posted @ 2021-09-06 10:04 决天
阅读(42)
评论(0)
推荐(0)
2021年8月3日
Vue事件修饰符+按键修饰符
摘要: prevent:阻止默认事件 stop:阻止事件冒泡 once:事件只触发一次 capture:使用捕获模式,即在捕获阶段触发事件,默认是在冒泡阶段触发 self:当event.target为当前操作的元素时才触发事件 passive:事件默认行为立即执行,无需等待事件回调后, 修饰符可以连写:@c
阅读全文
posted @ 2021-08-03 14:45 决天
阅读(96)
评论(0)
推荐(0)
2021年3月11日
vue 防重复提交 指令
摘要: // 代码 const pointDoms = []; // 使用这个指令的所有DOM对象 Vue.directive('points', { inserted(el, binding) { pointDoms.push(el); // 存储使用这个指令的DOM el.addEventListene
阅读全文
posted @ 2021-03-11 14:18 决天
阅读(233)
评论(0)
推荐(0)
2021年2月26日
h5 与app的交互中注意事项
摘要: 禁止双击和两指缩放 minimum-scale=1.0,maxmum-scale=1.0,user-scalable=no <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,ma
阅读全文
posted @ 2021-02-26 14:02 决天
阅读(69)
评论(0)
推荐(0)
2021年2月25日
css选择器 :not
摘要: div:not(.div){ color: red;} :not 选择器写法,前面加上对应的标签名,不然都会作用到,达不到not的效果
阅读全文
posted @ 2021-02-25 16:50 决天
阅读(204)
评论(0)
推荐(0)
font-weight 字重 normal regular bold
摘要: 字体粗细/字重:font-weight取值: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900初始: normal适用于: 所有元素继承: 是百分比: (不适用)媒介: 视觉其
阅读全文
posted @ 2021-02-25 14:15 决天
阅读(1414)
评论(0)
推荐(0)
2021年2月6日
css 自定义光标
摘要: body { cursor: url(http://bhyp.oss-cn-hangzhou.aliyuncs.com/temp/cur24.png),auto; } png图片会有大小限制,还没试出到第多大才行,目前16*16、24*24的是可以的 还有专门格式.cur的文件
阅读全文
posted @ 2021-02-06 11:22 决天
阅读(134)
评论(0)
推荐(0)
2021年1月12日
git 连接远程地址操作步骤
摘要: 年龄大了,记不住,哈哈哈 git init git remote add origin (替换仓库地址) git pull origin master --allow-unrelated-histories git add ./pom.xmlgit add ./srcgit add .(新增全部)
阅读全文
posted @ 2021-01-12 11:40 决天
阅读(1109)
评论(0)
推荐(0)
2021年1月6日
js 向下取整
摘要: parseInt(15.5); //15 Math.floor(15.5); //15 15.5 >>> 0; //15 15.5 >> 0; //15 15.5|0; //15 ~~(15.5); //15
阅读全文
posted @ 2021-01-06 16:07 决天
阅读(534)
评论(0)
推荐(0)
下一页
公告
点击右上角即可分享