文章列表
对于div,p等块级元素,正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义的宽度之后自动换行
html:
<div id="wrap">正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义</div>
css:
<style type="text/css">
#wrap{
white-space:normal;
width:200px;
background-color:#C0C0C0;
}
</sty ...
- 2009-04-07 14:09
- 浏览 2181
- 评论(0)
[文本处理]
1、查看某文件的一部分
如果你只想看文件的前 5 行,可以使用 head 命令,
如:head -5 /etc/passwd
如果你想查看文件的后 10 行,可以使用 tail 命令,
如:tail -10 /etc/passwd
查看文件中间一段,可以使用 sed 命令
如:sed –n '5,10p' /etc/passwd 这样你就可以只查看文件的第 5 行到第 10 行
2、将 file.txt 里的123改为 456
方法 1
sed 's/123/456/g' file.txt > file.txt.new 修改的保存到其它文件
sed -i 's/123/45 ...
- 2009-03-17 10:42
- 浏览 882
- 评论(0)
PM 是 Red Hat Package Manager 的缩写,本意是Red Hat 软件包管理,顾名思义是Red Hat 贡献出来的软件包管理;在Fedora 、Redhat、Mandriva、SuSE、YellowDog等主流发行版本,以及在这些版本基础上二次开发出来的发行版采用;
RPM包里面都包含什么?里面包含可执行的二进制程序,这个程序和Windows的软件包中的.exe文件类似是可执行的;RPM包中还包括程序运行时所需要的文件,这也和Windows的软件包类似,Windows的程序的运行,除了.exe文件以外,也有其它的文件;
一个RPM 包中的应用程序,有时除了自身所带的附加 ...
- 2009-03-17 10:30
- 浏览 801
- 评论(0)
The most important thing that you have to test your code whatever in which phase,throught the software lifecylcle you need to test your progroam.
The following are getting from the book,just as a remind,when we do the coding ,do not forget to do the test.
Unit tests
Most of us doing this lev ...
- 2008-11-04 16:31
- 浏览 947
- 评论(0)
<select class="form1" id="symbol" onbeforeactivate="return false" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()" onchange="getSecurityName()" name="symbol.displayValue">
<option selected ...
- 2008-11-04 15:44
- 浏览 953
- 评论(0)
1.Using EJB makes applications harder to test 2. Using EJB makes applications harder to deploy Complex classloader issues. Complex deployment descriptors. Slower development-deployment-test cycles. 3. Using EJB with remote interfaces may hamper practicing OO design Interface gr ...
- 2008-11-03 13:40
- 浏览 652
- 评论(0)