07 2012 档案

摘要:text-align的默认值是left.文本在左边界对齐,右边呈锯齿状。 center:会使每个文本行居中。 text-align:center 与<center> 元素的区别: <center>不仅影响文本,还会把整个元素居中。text-align:center 不会控制元素的对齐,只影响其内部的内容。 垂直对齐: line-height:指文本行基线之间的距离。 line-h... 阅读全文
posted @ 2012-07-18 21:23 屁股大不足为奇 阅读(155) 评论(0) 推荐(0)
摘要:/// <summary> /// 统计一段文本中有多少单词 /// </summary> /// <param name="text">输入的文本</param> /// <returns>单词和其数量</returns> static Dictionary<string, int> CountWords(string... 阅读全文
posted @ 2012-07-16 20:35 屁股大不足为奇 阅读(110) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ delegate void StringProcessor(string input);//声明委托的类型 class Person { string name; public Person(string name) { this.n... 阅读全文
posted @ 2012-07-15 13:23 屁股大不足为奇 阅读(94) 评论(0) 推荐(0)