1.text控件
//设置输入框文本水平对齐方式
// cc.TEXT_ALIGNMENT_CENTER;// 居中
//cc.TEXT_ALIGNMENT_LEFT; // 居左
//cc.TEXT_ALIGNMENT_RIGHT; // 居右
setTextHorizontalAlignment(alignment)//设置输入框文本垂直对齐方式
//cc.VERTICAL_TEXT_ALIGNMENT_TOP 靠上
//cc.VERTICAL_TEXT_ALIGNMENT_CENTER 居中
//cc.VERTICAL_TEXT_ALIGNMENT_BOTTOM 靠下
setTextVerticalAlignment(alignment)