/*=======================翻页样式===========================*/.pages
{ width: 660px; text-align: center; font-size: 14px; float: left; margin-left:
340px;...
分类:
Web程序 时间:
2014-05-27 01:54:01
阅读次数:
491
.v_comment
img{ height:36px; height:36px; float:left; padding:1px; margin:2px; border: 1px
solid #ddd; }.v_comment img:hover{border: 1px solid #ccc; -...
分类:
Web程序 时间:
2014-05-27 01:31:52
阅读次数:
264
内容来源于开发者社区。用到的代码如下:using UnityEngine;using
System.Collections;using System;public class ClockAnimator : MonoBehaviour{
private const float h...
分类:
其他好文 时间:
2014-05-24 00:47:44
阅读次数:
308
我们在页面布局时,基本上都避免不了使用float,但由此也会引发一些问题,尤其是在容器高度不固定时,此时它的高度完全是由内部的元素撑开的。如果内部元素还是浮动的,那么由于内部的元素脱离了文档流,父容器就不能被撑开了。如果父容器设置的有背景或者边框的话,此时就不能正常显示了,另外,父容器下边的其他容器...
分类:
其他好文 时间:
2014-05-24 00:43:38
阅读次数:
281
string $sel[]=`ls -sl`;float $T[]=`xform -q -ws -t
$sel[0]`;float $R[]=`xform -q -ws -ro $sel[0]`;if (`exists ($sel[0]+"_Con")`==0)
{delete ($sel[0]+"...
分类:
其他好文 时间:
2014-05-23 23:23:38
阅读次数:
318
/* 用户按下触摸屏、快速移动后松开public boolean
onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
{//参数解释:// e1:第1个ACTION_DOWN MotionEvent// ...
分类:
移动开发 时间:
2014-05-23 11:46:44
阅读次数:
332
public class MainActivity extends Activity {
private ImageView iv;
float startX = 0;
float startY = 0;
//获得一个可以被bitmap
Bitmap bitmap = Bitmap.createBitmap(400, 400,Bitmap.Config.ARGB_8888);
//创...
分类:
移动开发 时间:
2014-05-18 15:54:33
阅读次数:
318
用jquery实现的一个超级简单的下拉菜单。
效果图
初始效果
鼠标悬浮效果
代码
nav a {
text-decoration: none;
}
nav > ul > li {
float: left;
text-align: center;
padding: 0 0.5em;
}
nav li ul.sub-menu {
...
分类:
Web程序 时间:
2014-05-18 10:48:11
阅读次数:
522
Point pos(100, 100); //start point
m_animSprite->setPosition(pos);
int count = 8; float radius = 50.f; float angle = 360.f/count; auto array = PointArray::create(count + 1); Point pt0(r...
分类:
其他好文 时间:
2014-05-18 07:02:31
阅读次数:
250
数据类型:基本数据类型和引用数据类型基本数据类型包括 数值型(整数类型
byte,short,int,long;浮点类型 float double);字符型char;布尔型boolean引用数据类型包括
类class;接口interface ;数组2.字面量整数字面量为整数(int);小数字面量为双...
分类:
移动开发 时间:
2014-05-17 21:26:27
阅读次数:
321