上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: html css 创建 ToolTip 笔记 效果: 代码如下: <template> <div class="tooltip"> 悬停查看提示 <span class="tooltiptext">这是一个CSS自定义tooltip</span> </div> </template> <style 阅读全文
posted @ 2025-11-18 10:30 fanbal 阅读(5) 评论(0) 推荐(0)
摘要: CommunityToolkit.Mvvm 同时能够被调用和使用源生成器,但是它是如何实现的呢?本文将提供一个简单的教程。 阅读全文
posted @ 2025-11-14 10:23 fanbal 阅读(19) 评论(0) 推荐(0)
摘要: torchvision 使用本地 FashionMNIST 数据集进行导入的方法 一、 错误示例: 不解压、随便一个路径 二、正确操作 解压它们并放在指定的地方: 你需要放在对应数据的 \FashionMNIST\raw\ 文件夹下。 具体的结构请注意是这个样子: 我们在 root 中需要指定 da 阅读全文
posted @ 2025-11-06 13:17 fanbal 阅读(34) 评论(0) 推荐(0)
摘要: 介绍了在 html css 中实现 ComboBox 可以用类似 select 和 option 来作为代替。 阅读全文
posted @ 2025-10-24 08:56 fanbal 阅读(45) 评论(0) 推荐(0)
摘要: 本文介紹了 WPF 和 Avalonia 中的 ScrollViewer 和 html css 如何对应起来,为 html css 新手有所参考。 阅读全文
posted @ 2025-10-23 16:04 fanbal 阅读(36) 评论(0) 推荐(0)
摘要: Avalonia Calendar 日历控件遇到 Flyout 或者切换页面时出现的鼠标按下失效的解决方法 省流:把事件订阅从 DataContextChanged 改为路由事件订阅 一、背景 出现的问题:当点击了日期后,第二次打开,鼠标偶尔仍然处于按下的状态擅自选择了一个日期并执行了事件。 这是一 阅读全文
posted @ 2025-09-11 09:40 fanbal 阅读(57) 评论(0) 推荐(0)
摘要: Nez 中的 UI 在摄像头位置发生了更改后,判定出现问题的解决方法 一、背景 我们有一个这样的场景,其中左上角有一个按钮,我们发现我们摄像头的移动并不能影响UI的变化,但是判定的位置发生了变化,会感到明显的歪了。 代码如下: public class TestScene : Scene { pub 阅读全文
posted @ 2025-08-01 21:49 fanbal 阅读(10) 评论(0) 推荐(0)
摘要: Nez 使用 PrototypeSpriteRenderer 组件无法按照中心旋转的办法 解决办法 public class PrototypeSpriteRenderer2: PrototypeSpriteRenderer { public override void Render(Batcher 阅读全文
posted @ 2025-07-31 08:55 fanbal 阅读(6) 评论(0) 推荐(0)
摘要: 本文介绍了在 Avalonia 的 axaml 中定义 string 字符串 阅读全文
posted @ 2025-07-09 15:24 fanbal 阅读(88) 评论(0) 推荐(0)
摘要: Avalonia 中 bool 变量通过绑定切换两种样式的实现方式,可以使用 `Classes.red="{Binding !IsOK}"` 这种方式取反。 阅读全文
posted @ 2025-07-09 14:06 fanbal 阅读(132) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页