上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 37 下一页
摘要: function displayWindowSize() { // 获取窗口的宽度和高度,不包括滚动条 var w = document.documentElement.clientWidth; var h = document.documentElement.clientHeight; // 在d 阅读全文
posted @ 2022-07-01 16:02 SimoonJia 阅读(96) 评论(0) 推荐(0)
摘要: var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i 阅读全文
posted @ 2022-07-01 15:48 SimoonJia 阅读(77) 评论(0) 推荐(0)
摘要: -webkit-tap-highlight-color: rgba(0, 0, 0, 0) 阅读全文
posted @ 2022-07-01 10:32 SimoonJia 阅读(81) 评论(0) 推荐(0)
摘要: 把stretch设为百分比值。 记得加单引号。否则报错 阅读全文
posted @ 2022-06-30 19:19 SimoonJia 阅读(21) 评论(0) 推荐(0)
摘要: justify-content 属性 内容对齐(justify-content)属性应用在弹性容器上,把弹性项沿着弹性容器的主轴线(main axis)对齐。 justify-content 语法如下 justify-content: flex-start | flex-end | center | 阅读全文
posted @ 2022-06-29 13:16 SimoonJia 阅读(405) 评论(0) 推荐(0)
摘要: `white-space: break-spaces;` 是CSS的一个属性,用于指定如何处理元素内的空白字符。 当设置为`break-spaces`时,浏览器会在元素内的空白字符(空格、制表符、换行符等)处进行换行处理,而不会合并多个空白字符。这样可以确保文本内容在不断行的情况下仍然保持适当的间距 阅读全文
posted @ 2022-06-29 09:14 SimoonJia 阅读(502) 评论(0) 推荐(0)
摘要: box-sizing属性可以为三个值之一:content-box(default),border-box,padding-box。 content-box,border和padding不计算入width之内 padding-box,padding计算入width内 border-box,border 阅读全文
posted @ 2022-06-28 18:19 SimoonJia 阅读(59) 评论(0) 推荐(0)
摘要: 时间选择器 <Form.Item label="生日"> {getFieldDecorator('birthday', { rules: [{ type: 'object', required: true, message: 'Please select time!' }], })(<DatePic 阅读全文
posted @ 2022-06-27 13:56 SimoonJia 阅读(299) 评论(0) 推荐(0)
摘要: 如果onclick事件有参数则点击事件应写成 <Button type="primary" onClick={() => updateItem(record)}> 编辑 </Button> 如果写成下面这种形式会默认执行并且会报相关错误 <Button type="primary" onClick= 阅读全文
posted @ 2022-06-27 13:31 SimoonJia 阅读(35) 评论(0) 推荐(0)
摘要: const value = { ...values, birthday: values['birthday'].format('YYYY-MM-DD'), };//时间戳转字符串 moment(record.birthday, 'YYYY-MM-DD')//字符串转时间戳 # moment.js # 阅读全文
posted @ 2022-06-24 19:46 SimoonJia 阅读(16722) 评论(0) 推荐(1)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 37 下一页