当前位置: 编程技术>移动开发
本页文章导读:
▪施用#pragma 使用#pragma
#pragma mark -
#pragma mark Table Data Source Methods
加上这样的标识后,在导航条上会显示源文件的方法列表。
Table Data Source Methods上显示的边框为#pragma mark -定义,如果没有"-"则显示空.........
▪ 过长删节号 过长省略号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"><html xmlns="http://www.w3.org/1999/xhtml">powered by 25175.net<head><title>纯DIV+CSS左侧导航菜单(DIV溢出文字用省略号点代替)-C.........
▪ Serializable Parcelable的差别 Serializable Parcelable的区别
stackoverflow上的解释:
Serializable is a standard Java interface. You simply mark a class Serializable by implenting the interface, and Java will automatically serialize it in certain situations.
Parcelable .........
[1]施用#pragma
来源: 互联网 发布时间: 2014-02-18
使用#pragma
#pragma mark - #pragma mark Table Data Source Methods
加上这样的标识后,在导航条上会显示源文件的方法列表。
Table Data Source Methods上显示的边框为#pragma mark -定义,如果没有"-"则显示空行。
这样就可以对功能相关的方法进行分隔,方便查看了。
[2] 过长删节号
来源: 互联网 发布时间: 2014-02-18
过长省略号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">powered by 25175.net
<head>
<title>纯DIV+CSS左侧导航菜单(DIV溢出文字用省略号点代替)-CSS特效-网页特效-站长新动力-msxindl.com</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<style type="text/css">
/*------纯DIV+CSS左侧导航菜单--------*/
#menu{
border: solid 1px #CCCCCC;
width: 150px;
float: left;
font-size: 13px;
padding: 5px;
}
li{
list-style: none;
width:100%;
float: left;
}
#menu li a{
padding: 0 1em;
line-height: 200%;
background: #E4E4E4;
/*-----溢出文字用省略号点代替---*/
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
/*---------------------------*/
width: 100%;
display: block;
border-bottom: solid 1px #FFFFFF;
color: brown;
text-decoration: none;
}
#menu li a:hover{
background: #FFFFFF;
color: black;
}
</style>
</head>
<body>
<div id="menu">
<li><a title="站长新动力首页" href="/">站长新动力首页</a> </li>
<li><a title="SEO优化文摘" href="/seo/index.html">SEO优化文摘</a></li>
<li><a title="网页特效" href="/texiao/index.html">网页特效</a></li>
<li><a title="Google PR查询" href="/tools/pr/index.html">Google PR查询</a></li>
<li><a title="站长工具" href="/tools/index.html">站长工具</a></li>
<li><a title="网址收录" href="/web/index.html">网址收录</a></li>
<li><a title="友情链接" href="/web/web_add_ok.html">友情链接</a> </li>
<li><a title="此行溢出文字用省略号点代替" href="#">此行溢出文字用省略号点代替</a></li>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">powered by 25175.net
<head>
<title>纯DIV+CSS左侧导航菜单(DIV溢出文字用省略号点代替)-CSS特效-网页特效-站长新动力-msxindl.com</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<style type="text/css">
/*------纯DIV+CSS左侧导航菜单--------*/
#menu{
border: solid 1px #CCCCCC;
width: 150px;
float: left;
font-size: 13px;
padding: 5px;
}
li{
list-style: none;
width:100%;
float: left;
}
#menu li a{
padding: 0 1em;
line-height: 200%;
background: #E4E4E4;
/*-----溢出文字用省略号点代替---*/
white-space:nowrap;
text-overflow:ellipsis;
overflow:hidden;
/*---------------------------*/
width: 100%;
display: block;
border-bottom: solid 1px #FFFFFF;
color: brown;
text-decoration: none;
}
#menu li a:hover{
background: #FFFFFF;
color: black;
}
</style>
</head>
<body>
<div id="menu">
<li><a title="站长新动力首页" href="/">站长新动力首页</a> </li>
<li><a title="SEO优化文摘" href="/seo/index.html">SEO优化文摘</a></li>
<li><a title="网页特效" href="/texiao/index.html">网页特效</a></li>
<li><a title="Google PR查询" href="/tools/pr/index.html">Google PR查询</a></li>
<li><a title="站长工具" href="/tools/index.html">站长工具</a></li>
<li><a title="网址收录" href="/web/index.html">网址收录</a></li>
<li><a title="友情链接" href="/web/web_add_ok.html">友情链接</a> </li>
<li><a title="此行溢出文字用省略号点代替" href="#">此行溢出文字用省略号点代替</a></li>
</div>
</body>
</html>
[3] Serializable Parcelable的差别
来源: 互联网 发布时间: 2014-02-18
Serializable Parcelable的区别
stackoverflow上的解释:
Serializable is a standard Java interface. You simply mark a class Serializable by implenting the interface, and Java will automatically serialize it in certain situations.
Parcelable is an Android specific interface where you implement the serialization yourself. It was created to be far more efficient that Serializable, and to get around some problems with the default Java serialization scheme.
I believe that Binder and AIDL work with Parcelable objects.
However, you can use Serializable objects in Intents.
最新技术文章: