个人案例
豆子碎片
收集了很多经典的库和代码片段,是编程开发必备工具
编程开发必备工具扫码体验
豆子工具
内含IP查询、图片格式转换、音频格式转换等工具
实用小工具扫码体验
- css排版求教?
[图片] 现在想让诗句上下都对齐,不单单每一行。求css的参数,使用flex布局。 css代码如下: text { font-family: "Microsoft YaHei"; } .container { display: flex; flex-direction: column; align-items: center; background-color: #f2f2f2; } /* 盒子 */ .box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10rpx; } /* 标题 */ .title { display: flex; flex-direction: row; align-items: flex-end; padding: 0 10rpx; } .title .pinyin { font-size: 1.5em; } .title .hanzi { font-size: 1.8em; } /* 诗人信息 */ .info { display: flex; flex-direction: row; align-items: flex-end; margin-bottom: 10rpx; } /* 朝代 */ .dynasty { display: flex; flex-direction: row; margin-right: 10rpx; } .dynasty .pinyin { font-size: 1.2em; } .dynasty .hanzi { font-size: 1.5em; } /* 诗人 */ .poet { display: flex; flex-direction: row; } .poet .pinyin { font-size: 1em; } .poet .hanzi { font-size: 1.3em; } /* 诗句 */ .verses { display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: pre-wrap; text-align: justify; word-break: break-all; vertical-align: middle; } .verse { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; vertical-align: middle; } .verse .pinyin { font-size: 1em; vertical-align: middle; } .verse .hanzi { font-size: 1.3em; vertical-align: middle; }
2023-06-05 - 有没有更好的方法,处理拼音和汉字上下对齐的排版?
目前的排版如下: .verses { display: flex; flex-direction: column; white-space: pre-wrap; text-align: justify; word-break: break-all; } .verse { display: flex; flex-direction: row; align-items: center; justify-content: space-evenly; } .verse text { padding: 0 10rpx; } [图片]
2023-06-02 - 文章页关注?
怎么知道是哪个文章
2023-05-29 - 文章页关注?
怎么知道是哪个文章
2023-05-29 - wx.chooseMedia示例打印错误?
wx.chooseMedia({ count: 9, mediaType: ['image','video'], sourceType: ['album', 'camera'], maxDuration: 30, camera: 'back', success(res) { console.log(res.tempFiles.tempFilePath) // 这个是错误,返回的数组 console.log(res.tempFiles.size) // 这个是错误,返回的数组 } })
2023-01-30 - 我发的帖子会丢失吗?
为什么我发的帖子会丢失呢?到底发生了什么
2022-04-05 - 我刚发的文章为啥看不到了?
今天刚发了两篇文章,看不到了
2022-04-05 - 微信开发社区小程序在我查看自己的文章时会报错
小程序微信开发社区,在我查看自己的文章时,会报错,[图片]
2022-04-05 - 在wxml中引入wxs,微信开发者工具崩溃!
在wxml中引入wxs函数,wxml没有函数没有作用,使用console.log在wxs进行调试,开发者工具调试器中console栏,显示[WXS RUNtime info] 然后模拟器崩溃,或开发者工具崩溃[图片]
2021-04-02 - 使用微信激励视频广告,但是页面载入时感觉卡顿?
小程序页面使用了微信激励视频广告,在测试时,感觉页面卡顿,不添加不卡顿,请问有什么优化方法吗?
2020-04-10