上一页 1 ··· 8 9 10 11 12
摘要: CGFloat R = (CGFloat) 242/255.0; CGFloat G = (CGFloat) 242/255.0; CGFloat B = (CGFloat) 242/255.0; CGFloat alpha = (CGFloat) 1.0; UIColor... 阅读全文
posted @ 2014-07-11 10:14 苏糊 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 设置userInteractionEnabled 属性为 Yes; 阅读全文
posted @ 2014-06-17 15:38 苏糊 阅读(195) 评论(0) 推荐(0) 编辑
摘要: //点击其他地方,键盘收起- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ [super touchesEnded:touches withEvent:event]; [self.viewendEditing:YE... 阅读全文
posted @ 2014-06-12 14:01 苏糊 阅读(227) 评论(0) 推荐(0) 编辑
摘要: .h文件声明方法#import@interface ZHTTPManager : NSObject+ (void)startAsynchourRequestWithUrlString:(NSString *)URLString params:(NSD... 阅读全文
posted @ 2014-06-10 13:50 苏糊 阅读(717) 评论(0) 推荐(0) 编辑
摘要: UIImageView *image= [[UIImageView alloc]init];image.layer.cornerRadius = 10.0;//如果想变圆形,设置这个值为宽度的一半image.layer.masksToBounds = YES; 阅读全文
posted @ 2014-06-10 13:43 苏糊 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 有俩文本框,必须输入其中一个才能查询 ID @Html.TextBoxFor(model => model.Condition.ID, new { @class = "input_txt w130 textbox1" }) Name @Html.TextBoxFor(model => model.Condition.Name, new { @class = "input_txt w130 textbox2" }) 请填写查询条件 阅读全文
posted @ 2013-12-27 10:42 苏糊 阅读(722) 评论(1) 推荐(0) 编辑
摘要: @Html.Raw() 防止自动编码^^^^^^^string time = "当前时间为:" + now;几个字的首尾加了,大家都知道b标记是加粗文本显示的运行结果当前时间为:2013-12-17 10:35:21 @Html.Raw(time) 阅读全文
posted @ 2013-12-17 10:41 苏糊 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 今天遇到个小问题,在MVC4中,有个字段的长度太长,把页面撑得很难看,所以写个JS让它变成加成显示,在长度超过10的时候,就显示‘......’,鼠标移上去就会显示全部内容。假设有一张表,存了ID和Reason两个字段,在页面把它取出来 账号原因 @if (!Model.IsQueryResultEmpty) { foreach (var item in Model.Result.Items) { @item.ID @if (item.Reason != null && item.Reason.Length > 10) { ....... @Html.Raw(item.R 阅读全文
posted @ 2013-12-16 21:20 苏糊 阅读(249) 评论(1) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-11-18 14:32 苏糊 阅读(9) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-10-30 11:10 苏糊 阅读(19) 评论(2) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12