摘要: <form action = "告诉表单要提交到某处" method="表单的提交方式"><input type=""/></form> 提交方式: get:明文传输,标单内容加载到域名 post:保密传输,不会显示表单内容 <form action = "#" method = "post"> < 阅读全文
posted @ 2017-12-17 12:04 梦想起航我起床 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 比较优先级: 若属性值后跟上!imprtangt表是一条重要声明,否则是普通声明 优先级从低到高: 1.浏览器默认样式表中的声明 2.用户样式表中的普通声明 3.作者样式表中的普通声明 4.作者样式表中的重要声明 5.用户样式表中的重要声明 比较特殊性:(优先级相同的情况) 行内样式>ID选择器>类 阅读全文
posted @ 2017-12-16 13:23 梦想起航我起床 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1. input[type="text"]{} 选中属性值为text的input 2. input[type|="text"]{} 选中以text-开始的input的type属性值 <input type="text-sadads"> 3. input[type^="text"]{} 选中标签中ty 阅读全文
posted @ 2017-12-16 13:12 梦想起航我起床 阅读(7082) 评论(0) 推荐(0) 编辑
摘要: ///<summary>///写出概要表述,截取并获得某个字符串的一部分///</summary>///<param name="">带截取的字符串</param>///<return>截取后的新字符串</return>static string Add(string n) { 函数体 } 通常写到 阅读全文
posted @ 2017-12-10 09:27 梦想起航我起床 阅读(266) 评论(0) 推荐(0) 编辑
摘要: List<变量类型> nums=new List<变量类型>(); 添加元素: 变量名.Add(要添加的数据);//要添加的元素添加到原来集合之后 nums.Add(1); 插入元素: 变量名.Insert(索引,要插入的数据);//向集合的指定位置插入一个新的元素 nums.Insert(1,10 阅读全文
posted @ 2017-12-10 09:21 梦想起航我起床 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 方法一:交换排序 实现方法:把第一个位置的数字拿出来,依次合后面位置的数字比较,若比后面数字大,则交换 int[] str = new int[5] {237,5,88,1,101}; for (int i = 0; i < str.Length-1; i++) { for (int j = i + 阅读全文
posted @ 2017-12-10 09:12 梦想起航我起床 阅读(3582) 评论(2) 推荐(0) 编辑
摘要: Console.Write("请输入一个字符串:"); string str = Console.ReadLine(); string reverse = "";//用于存放反序后的字符串 for (int i = str.Length - 1; i >= 0; i--) { reverse += 阅读全文
posted @ 2017-12-10 08:53 梦想起航我起床 阅读(2084) 评论(1) 推荐(0) 编辑
摘要: //多个值同时变化function getStyle(obj, name)//函数帮助获取不在行间样式,不受非行间border,padding等得影响{ //style只获取行间样式。offset受非行间border,padding等得影响 if(obj.currentStyle) { return 阅读全文
posted @ 2017-12-09 09:33 梦想起航我起床 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: //第一步bool isFind = false; // 查找开始前,没有找到//第二步for (int i = 100; i <= 200; i++){ // 判断i是否是水仙花数 int a = i / 100 % 10; //百位 int b = i / 10 % 10; //十位 int c 阅读全文
posted @ 2017-12-09 09:15 梦想起航我起床 阅读(376) 评论(0) 推荐(0) 编辑
摘要: double n; //用于保存用户的输入 while(true) // 用于永远无法退出这个循环,除非输入正确{ Console.Write("请输入一个正整数:"); n = int.Parse(Console.ReadLine()); if(n<=0||n-(int)n!=0) { Conso 阅读全文
posted @ 2017-12-09 09:11 梦想起航我起床 阅读(1451) 评论(0) 推荐(0) 编辑