首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

表单

1.表单控件     1.input标记         1.input标记             提供文本输入框,密码输入框,按钮,单选按钮,多选按钮,文件上传框,隐藏域         2.属性             type:类型              根据不同的type值,创建不同的输入框             value:输入框的值             name:给输入框起个名字(必须要写)             disabled:禁止         3.具体的表单type值             1.文本框                 <input type="text"/>                 属性:                     value:输入框的值 maxlength:允许输入的最大长度                     readonly:只读             2.密码框                 <input type="password"/>                 属性:                     value:输入框的值                     maxlength:允许输入的最大长度                     readonly:只读             3.单选框                 <input type="radio"/>                 属性                     name属性的值必须一样(必须要加)                     checked:选中             4.多选框                 <input type="checkbox"/>             5.按钮 1.普通按钮:button                     <input type="button" value="普通按钮"/>                     value属性                 2.提交按钮:submit                     <input type="submit" value="提交按钮"/>                 3.重置按钮:reset                     <input type="reset" value="重置按钮"/>             6.文件上传框:file                 <input type="file"/>     2.<textarea></textarea>标记         1.多行文本框         2.语法             <textarea></textarea>         3.属性             name:命名             cols:代表多少列 ----输入框显示做多显示列数             rows:代表多少行 ----输入框显示做多显示行数             readonly:只读     ----   输入框的内容无法输入     3.select下拉标记         1.语法

03

iOS_监测键盘的显示和隐藏变化,并获得键盘高度,改变tableView的frame和偏移

}#pragma mark 根据键盘高度 改变 输入框和表格 的位置- (void)changeInputViewTableViewPlaceWith:(CGFloat)height { [self.inputView mas_remakeConstraints:^(MASConstraintMaker *make) { make.left.right.equalTo(self.view); make.bottom.equalTo(self.view).offset(-height); make.height.mas_equalTo(kInputHeight); }]; [self.tableView mas_remakeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(self.view).offset(64); make.width.equalTo(self.view); make.bottom.equalTo(self.inputView.mas_top); //使tableView滑到最下端 NSInteger arrCount = self.messagesArray.count; NSIndexPath *index = [NSIndexPath indexPathForRow:arrCount - 1 inSection:0]; if (arrCount > 0) { [self.tableView scrollToRowAtIndexPath:index atScrollPosition:UITableViewScrollPositionBottom animated:YES]; } if (height > kMoreHeight) { CGFloat showhHeight = kHeight - kInputHeight - height - 64; CGFloat allHeight = self.tableView.contentSize.height; CGPoint contentPoint = CGPointMake(0, allHeight - showhHeight); [self.tableView setContentOffset:contentPoint animated:YES]; } }];}

02
领券