error NU1301: Failed to retrieve information about 'volo.abp.cli' from remote source 'https://www.myget.org/feed/Packages/aspnetcoremodules/FindPackagesById()?id='volo.abp.cli'&semVerLevel=2.0.0'.

摘要: today i come across an error when install the abp from the command line after refer to https://github.com/abpframework/abp/issues/2003 I do below test 阅读全文
posted @ 2022-12-17 16:43 thegavincheng 阅读(325) 评论(0) 推荐(0) 编辑

Demo of canvas, canvas optimization and svg

摘要: It used the canvas to draw the curves in the old project, and the client felt that it was vague, so I tried to make a demo about canvas, canvas optimi 阅读全文
posted @ 2022-12-16 11:03 thegavincheng 阅读(9) 评论(0) 推荐(0) 编辑

div 自动高度

摘要: 问题: 一个页面分上下二部分,上部分高度是固定不变的,要求下部分高度自动占满屏幕,如何实现?第一感觉是准备用 JS 实现。今天发现一个用 CSS 实现的方法position: fixed;bottom: 10px;overflow: auto;left: 0px;top: 44px;positi... 阅读全文
posted @ 2014-08-05 15:54 thegavincheng 阅读(179) 评论(0) 推荐(0) 编辑

select multiple 浏览器兼容

摘要: select multiple 时一般是设置 height上面的代码在 Firfox chrome 上都显示正常,但在 IE 下就成在网上查了下,由于 option 由浏览器控制,不受 CSS 控制,一般做法是不设置 height 而是用 size 但是设置 size 有一个问题就是当 ... 阅读全文
posted @ 2014-06-18 10:00 thegavincheng 阅读(535) 评论(0) 推荐(0) 编辑

select remove option safari 兼容

摘要: select 移除某一 option 的 javascript 公司用的代码是var ddlPrimaryResource = document.getElementById(ddlPrimaryResourceID);ddlPrimaryResource.options[ddlPrimaryR... 阅读全文
posted @ 2014-06-18 09:20 thegavincheng 阅读(487) 评论(0) 推荐(0) 编辑

如何让一个 div 左右各空一定距离然后 div 占满剩下的宽度?

摘要: 如何让一个 div 左右各空一定距离然后 div 占满剩下的宽度?最开始想到的方法就是 div 宽度取 n%, style 设置 margin:auto。但是这样有一个问题,一定距离是根据 n 的取值而来。今天无意中发现一个方法就是 div 外层套一个 div 设置 style margin-l... 阅读全文
posted @ 2014-04-28 15:25 thegavincheng 阅读(1296) 评论(0) 推荐(0) 编辑

span服务器控件

摘要: Label Button 这些控件在服务器端都有对应的类可以去实例化一个对象,可是像 span 这些在服务器没有对应的类可实例的,在服务器端要实例化一个 span 控件时怎么办呢?可以使用 HtmlGenericControl 如:Dim titleText As New HtmlGeneric... 阅读全文
posted @ 2014-04-24 09:05 thegavincheng 阅读(280) 评论(0) 推荐(0) 编辑

outlook初用

摘要: 以前一直用 Foxmail 收发邮件,由于公司用到 sharepoint 可以跟 outlook 绑定,试了下 outlook。第一次用 outlook 以为也是跟 foxmail 一样简单配置一下就可以搞定,输入 邮箱名称和密码后,弹出一个对话框说要到控制面板去设置什么的,当时没有理会,继续配... 阅读全文
posted @ 2014-04-24 08:54 thegavincheng 阅读(176) 评论(0) 推荐(0) 编辑

Iframe 默认高度、宽度

摘要: 项目中还在使用 Iframe ,一次看代码时发现 Iframe 没有指定高度、宽度,可是在页面上显示的时候却有高度、宽度。想着应该是 Iframe 的默认值,于是写了一个简单的页面,代码如下: 1 2 3 4 11 12 13 14 15 16 17 在 Firefox、Chorme、IE 上试了下显示的值都是 Height:150、Weight:300. 阅读全文
posted @ 2014-04-01 11:06 thegavincheng 阅读(2127) 评论(0) 推荐(0) 编辑

MVC页面加载速度优化小记

摘要: 前言: 最近做一个地图展示页面,业务初期没什么问题,运行一阵后报错:Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.Google 了一下,原来是由于业务数据的增多, ajax 后台返回时报错,参考网上的方法,在返回时设置一下 MaxJsonLength var jsonResult = Json(json... 阅读全文
posted @ 2014-03-11 15:57 thegavincheng 阅读(966) 评论(0) 推荐(0) 编辑