会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lyt598
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2020年5月13日
三角形
摘要: .get-list{ position: relative; width:100px; height: 50px; border-radius: 10px; background: olivedrab; } .get-list::before{ position: absolute; top:-16
阅读全文
posted @ 2020-05-13 15:21 lyt598
阅读(98)
评论(0)
推荐(0)
2020年5月7日
级联选择 / 城市地址
摘要: import React , {Component} from 'react'; import { Cascader } from 'antd'; import CityData from './cityData'; class TestOne extends Component { onChang
阅读全文
posted @ 2020-05-07 16:51 lyt598
阅读(434)
评论(0)
推荐(0)
城市
摘要: const Position = [{ value: '北京市',label: '北京市','children': [{ value: '北京市',label: '北京市','children': [{ value: '东城区',label: '东城区'}, { value: '西城区', labe
阅读全文
posted @ 2020-05-07 15:35 lyt598
阅读(625)
评论(0)
推荐(0)
web 自适应
摘要: function resizeListener(){ // 定义设计图的尺寸 1920 let designSize = 1920; // 获取 html 元素 let html = document.documentElement; // 定义窗口的宽度 let clientW = html.cl
阅读全文
posted @ 2020-05-07 14:23 lyt598
阅读(167)
评论(0)
推荐(0)
react 监听可视窗口宽度 动态修改antd menu 宽度
摘要: constructor(props){ super(props); this.state = { collapsed:false } } handleClientW = (width,num)=>{ if(width < num){ this.setState({ collapsed:true })
阅读全文
posted @ 2020-05-07 13:47 lyt598
阅读(4955)
评论(0)
推荐(0)
2020年4月12日
audio 自动播放
摘要: voicePaly= ()=> { var music=new Audio(); music.src="./music/music.mp3";//这里替换成一个有效的音频文件地址以方便测试 music.loop=true; music.play(); }; //由于浏览器不支持 自动播放,因此需要在
阅读全文
posted @ 2020-04-12 10:15 lyt598
阅读(2161)
评论(0)
推荐(0)
2020年3月12日
图片响应式
摘要: <div class="img-wrapper"> <img src="xxx.png" alt="" class="img-style"/> </div> <style> .img-wrapper{ overflow: hidden; width:100%; height: 0; padding-
阅读全文
posted @ 2020-03-12 12:41 lyt598
阅读(107)
评论(0)
推荐(0)
2020年3月11日
react-devtools安装
摘要: 进入到react-devtools-master文件夹,用npm安装依赖 npm --registry https://registry.npm.taobao.org install 安装依赖成功后,我们便可以打包一份扩展程序出来 npm run build:extension:chrome项目目录
阅读全文
posted @ 2020-03-11 16:34 lyt598
阅读(476)
评论(0)
推荐(0)
2019年11月12日
Antd时间选择框汉化问题总结------国际化全局设置
摘要: import zh_CN from 'antd/lib/locale-provider/zh_CN'; import 'moment/locale/zh-cn'; import { ConfigProvider } from 'antd'; // 然后用ConfigProvider包裹全局组件 ex
阅读全文
posted @ 2019-11-12 16:45 lyt598
阅读(2141)
评论(1)
推荐(2)
2019年11月6日
Chrome 手动安装.crx插件
摘要: 将.crx的文件的扩展名改为.zip,并解压到指定的文件夹(这个文件夹不能删除, 例如解压到了test文件夹) 打开Chrome浏览器,地址栏输入 chrome://extensions/, 勾择开发者模式,点击'加载已解压的扩展程序' 选择你刚刚.zip`文件解压所在的test文件夹,点击确定。扩
阅读全文
posted @ 2019-11-06 13:48 lyt598
阅读(727)
评论(0)
推荐(0)
1
2
3
4
下一页
公告