text-overflow:ellipsis;white-space:nowrap;overflow:hidden;不换行,一行显示溢出时,文本自动换行。以前都是js计算的,现在可好。ellipsis:省略号
分类:
Web程序 时间:
2014-08-05 09:30:58
阅读次数:
360
Metric spaces is a large class of spaces on which the closeness of two points is depicted by a distance function, or called a metric. Metric spaces ar...
分类:
其他好文 时间:
2014-08-05 03:04:28
阅读次数:
220
起初没400 Bad request
过一段时间就产生了
[pid: 14558|app: 0|req: 23/23] 123.127.3.37 () {38 vars in 653 bytes} [Mon Aug 4 21:29:55 2014] GET / => generated 0 bytes in 6 msecs (HTTP/1.1 500) 4 headers in 147 by...
分类:
其他好文 时间:
2014-08-05 00:44:10
阅读次数:
724
一、web服务器示例var http = require('http');http.createServer(function(req, res){ res.writeHeader(200, {Content-Type : 'text/plain'}); res.end('hello w...
分类:
Web程序 时间:
2014-08-05 00:01:58
阅读次数:
417
1、word-wrap:break-word,内容将在边界内换行,仅用于块对象,内联对象要用的话,必须要设定height、width或display:block或position:absolute。 2、word-break:break-all,用于处理单词折断。 3、white-space:n...
分类:
其他好文 时间:
2014-08-04 14:45:37
阅读次数:
231
var http = require('http'), fs = require('fs'), url = require('url'), path = require('path');http.createServer(function(req, res) { var pathurl = u...
分类:
Web程序 时间:
2014-08-03 20:29:25
阅读次数:
643
这个才是我们学node.js的真正原因,服务器!1、新建一个 index.js 写下var myhttp=require('http');myhttp.createServer(function(req,res){res.writeHead(200,{'Content-Type':''text/t....
分类:
Web程序 时间:
2014-08-02 18:05:13
阅读次数:
224
首先来看这一部分代码 1 /** 2 * Created by bsn on 14-7-1. 3 */ 4 var connect = require('connect'); 5 6 var app = connect(); 7 function hello(req, res, next) {...
分类:
Web程序 时间:
2014-08-02 12:41:53
阅读次数:
193
点击Preferences->SettingsUser,修改配置文件如下:{
"color_scheme":"Packages/ColorScheme-Default/Monokai.tmTheme",
"fallback_encoding":"UTF-8",
"font_size":14,
"tab_size":2,
"translate_tabs_to_spaces":true,
"word_wrap":true,
"trim_trailing_white_spa..
分类:
其他好文 时间:
2014-08-01 20:08:13
阅读次数:
227
A simple sample: import?java.io.*; import?javax.servlet.*; import?javax.servlet.http.*; public?class?HelloWorld?extends?HttpServlet{ ????public?void?doGet(HttpServletRequest?req,?Htt...
分类:
其他好文 时间:
2014-08-01 14:02:12
阅读次数:
230