1、水平居中布局(父容器和子容器宽度都不是固定的)方案1:利用inline-block 和 text-align,设置父容器的text-align="center",即父容器内的inline元素居中显示,再把子容器display设置成inline-block即可。CSS代码:1 .parent{2 ...
分类:
其他好文 时间:
2015-08-17 19:10:42
阅读次数:
157
appleMenu
body{margin:0px auto;padding:0px auto;}
#menuBar{width:100%;height:70px;position:absolute;bottom:0px;text-align: center;}
#menuBar img{width:70px;height:70px...
分类:
其他好文 时间:
2015-08-17 17:25:44
阅读次数:
100
例如 flex box,有一个伸缩容器flex container 容器中的元素自动变成了伸缩项flex items,例子中container就是伸缩容器,left、center、right是伸缩项给伸缩容器的css设 display:flex ; flex-flow:row/...
分类:
其他好文 时间:
2015-08-17 11:50:48
阅读次数:
116
box-align:start|end|center|baseline|stretchstart:设置弹性盒模型对象的子元素从开始位置对齐center:设置弹性盒模型对象的子元素居中对齐end:设置弹性盒模型对象的子元素从结束位置对齐baseline:设置弹性盒模型对象的子元素基线对齐stretch...
分类:
Web程序 时间:
2015-08-17 11:35:00
阅读次数:
194
Button?createCodeBtn?=?new?Button(shell,?SWT.CENTER);
createCodeBtn.addSelectionListener(new?SelectionAdapter()?{
@Override
public?void?widgetSelected(SelectionEvent?e)?{
...
分类:
数据库 时间:
2015-08-16 19:57:03
阅读次数:
228
1 2 leftleftleft3 center4 right 5 .content{overflow:hidden}.left,.center,.right{ margin-bottom:-10000px; padding-bottom:10000px; width:300px;...
分类:
其他好文 时间:
2015-08-16 10:43:29
阅读次数:
75
首先补充一下上次的内容: 先切换到 图形界面. ctrl ?alt ?T 呼出终端,如下图 ?(截图你可以用shutter,在ubuntu software center中自己去搜索) 技巧如下: F11 ?可以让终端全屏 Ctrl ?Shift ?+ ? ? 可以...
分类:
系统相关 时间:
2015-08-15 23:16:06
阅读次数:
430
很简易的一个智能自动问答机器人,应用了中文句子分词、多关键词句子匹配技术。
CHATTING
body{
background-color:#cccccc;
color:#eee;
text-align:center;
}
#dialogDisplay{
position:relative;
max-width:600px;
...
分类:
其他好文 时间:
2015-08-15 15:01:01
阅读次数:
193
多实例 [root@TIVOLI-PORTAL?new_portal]#?cat?/etc/profile.d/tomcat.sh
export?TOMCAT_HOME=/opt/musingtec
export?PATH=$PATH:$TOMCAT_HOME/bin
====================================================...
分类:
其他好文 时间:
2015-08-14 19:46:57
阅读次数:
128
创建vm常用的vm有VMwear和virtualbox两种方式,VMwear是收费的,virtualbox免费的。安装centeros分区时,swap的大小,如果内存小于4g就是本身内存的2倍,swap最好不要超过8g选择终端是选择minimal,安装服务时最好装上开发工具。注意设置ISO文件的路径,显示器最好调节800*600..
分类:
系统相关 时间:
2015-08-14 19:33:13
阅读次数:
154