上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 121 下一页
摘要: 在很多的业务场景中,我们可能需要达到这样的一个效果 也就是将左边的label设定成相同的宽度,并且label内部的文字需要两端对齐,这里需要使用到text-align中的justify。 语法 使用起来很简单,只要在需要文本两端对齐的标签上加上text-align:justify 左边是设定text 阅读全文
posted @ 2022-04-19 10:12 与f 阅读(1031) 评论(0) 推荐(0)
摘要: 比如要修改elementUI中某个组件的默认样式, 假设默认鼠标飘到el-button上,button会变蓝, 而我们想又要让button变红,可是全局修改又会使得所有的组件中button的style变化, 那么就要/deep/,表示就修改这个组件中的样式。 参考: Vue中的深度作用选择器/dee 阅读全文
posted @ 2022-04-19 08:56 与f 阅读(476) 评论(0) 推荐(0)
摘要: 注意:DataGridView控件是从.NET Framework 2.0版本开始追加的。 DataGridView的键事件(KeyDown、KeyUp、KeyPress、PreviewKeyDown),在单元格编辑中是不会发生的。是因为单元格进行编辑时是使用了TextBox。所以,捕捉编辑中单元格 阅读全文
posted @ 2022-04-15 17:07 与f 阅读(526) 评论(0) 推荐(0)
摘要: uniapp 内置了 rpx 转 px 的方法 // 100 为 100rpx的值 var px = uni.upx2px(100); px 转 rpx // 200 为 px 的值,后面的两个 100 为计算比例使用 var rpx = 200/(uni.upx2px(100)/100); // 阅读全文
posted @ 2022-04-14 14:27 与f 阅读(1239) 评论(0) 推荐(0)
摘要: 微信小程序: let query = wx.createSelectorQuery(); query.select('.find').boundingClientRect(res => { console.log(res.height); // 1545.7249755859375 }).exec( 阅读全文
posted @ 2022-04-14 14:25 与f 阅读(1772) 评论(0) 推荐(0)
摘要: 效果图 在winfrom中拖入一个DataGridView控件 private void Form1_Load(object sender, EventArgs e) { DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn 阅读全文
posted @ 2022-04-13 14:11 与f 阅读(4829) 评论(0) 推荐(0)
摘要: DataGridView 添加ComboBox 第一:先在窗体设计时拖一个ComBoBox控件,然后在里面的ITEMS设好你要下拉项,这个不用教了吧...第二:在窗体的Load方法中加入:g_DataGridView.Controls.Add(g_ComBoBox);也就是把ComBoBox控件添加 阅读全文
posted @ 2022-04-13 14:06 与f 阅读(957) 评论(0) 推荐(0)
摘要: C#实现获取当前的年(2位)+月(2位)+日(2位) //获取当前年月日 var year = DateTime.Now.Year.ToString().Substring(2, 2); var month = DateTime.Now.Month.ToString().PadLeft(2, '0' 阅读全文
posted @ 2022-04-09 14:59 与f 阅读(3033) 评论(0) 推荐(0)
摘要: 现在的框架中都有一个容器, 而容器解决依赖的问题是通过反射来达到的, 所以记录一下PHP反射的只是。首先先说明一下项目文件结构: / ROOT_PATH ├─src │ ├─Controllers │ │ └─IndexController.php | ├─Application.php (核心,获 阅读全文
posted @ 2022-03-24 10:30 与f 阅读(428) 评论(0) 推荐(0)
摘要: chart1.ChartAreas[0].AxisX.MajorGrid.LineDashStyle = ChartDashStyle.Dash; //设置网格类型为虚线 ,去掉为 ChartDashStyle.NotSet chart1.ChartAreas[0].AxisY.MajorGrid. 阅读全文
posted @ 2022-03-19 09:00 与f 阅读(683) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 121 下一页