03 2024 档案
摘要:iframe是一个内联元素,默认是跟baseline对齐的,iframe后边有个看不见、摸不着的行内空白节点,空白节点占据着高度,iframe与空白节点的基线对齐,导致了div被撑开,从而出现滚动条,查看空白节点捣鬼。 解决方案: 设置 iframe 的 vertical-align: top; 设
阅读全文
摘要::nth-child(even) or tr:nth-child(2n) 表示 HTML 表格中的偶数行 tr:nth-child(odd) or tr:nth-child(2n+1) 表示 HTML 表格中的奇数行
阅读全文
摘要:https://doc.weixin.qq.com/doc/w3_AAcAYAbdAFwpM63n1R5SIat3aa4cX?scode=AJEAIQdfAAoYHVCBbdAG4A1QYmAFQ 上面是文档链接 引入 { "plugins": { "novel-plugin": { "versio
阅读全文
摘要:小说付费章节渐变颜色配置 position: absolute; top: 0; left: 0; width: 100%; height: 211px; transform: translateY(-100%); background: linear-gradient(1turn, #f2f2f2
阅读全文
摘要:showLoading 和 showToast 同时只能显示一个; showLoading 应与hideLoading 配对使用; 把请求接口统一封装,开始请求接口时showLoading,请求接口后hideLoading 一个页面同时请求多个接口,由于请求是异步的,很有可能上一个开启了showLo
阅读全文
摘要:uniapp中post请求会默认header['content-type'] 为 application/json 的数据,会进行 JSON 序列化。但是如果在微信平台content-type必须严格执行
阅读全文
摘要:点击查看代码 // h5开发环境 const h5Dev = { baseUrl: 'https://devh5.....' } // h5测试环境 const h5Test= { baseUrl: 'https://testh5.....' } // h5生产环境 const h5Prod= {
阅读全文
摘要:data-eventsync="true" 添加这个属性
阅读全文
摘要:清除缓存 onLaunch: function () { console.log('App Launch') const preservedKeys = ['ishowFixPre', 'readTime'] try { const { keys } = uni.getStorageInfoSync
阅读全文