1、绝对定位 html,body{margin:0; height:100%;}#left,#right{position:absolute; top:0; width:200px; height:100%;}#left{left:0; background:#a0b3d6...
分类:
其他好文 时间:
2015-07-17 15:41:42
阅读次数:
134
2015-07-17 11:07:57CSS 1 #goreg { 2 width: 70px; 3 position: fixed; 4 bottom: 20px; 5 right: 25px; 6 z-index: 100; 7 opacity...
分类:
其他好文 时间:
2015-07-17 13:56:25
阅读次数:
117
纯css默认:.element { overflow: hidden; }Chrome and Safari.element::-webkit-scrollbar { width: 0 !important }IE 10+..element { -ms-overflow-style: none; }...
分类:
其他好文 时间:
2015-07-17 13:55:25
阅读次数:
215
效果如下:css代码:overflow:hidden;white-space: nowrap;text-overflow:ellipsis;解释:简单理解就是我要把文本限制在一行(white-space: nowrap;),肯定这一行是有限制的(width),并且你的溢出的部分要隐藏起来(overf...
分类:
其他好文 时间:
2015-07-17 13:30:30
阅读次数:
177
关于响应式布局 为了能使我们的网页适应不同设备的屏幕尺寸,通常我们会在CSS使用 media queries 来改变不同规格下的页面样式,对于有的元素,只需要增加 width:100% 就足够使其具有响应式布局的能力。 我们会定义...
分类:
其他好文 时间:
2015-07-17 12:16:24
阅读次数:
175
@(Model.content)(或者) @Html.TextAreaFor(it => it.content, 19, 100, new {style="margin:8px 0 0 0;width:719px;" }) ...
分类:
Web程序 时间:
2015-07-17 11:30:46
阅读次数:
136
此行是显示文字的内容,加载时自动调用commonSubstring()函数判断{ title: '点评', field: 'commonent', width: 180, resizable: true, f...
分类:
Web程序 时间:
2015-07-17 11:30:25
阅读次数:
168
1.qsort函数:原型:void qsort(void *base, int nelem, int width, int (*fcmp)(const void *,const void *));功能:使用快速排序例程进行排序参 数:1 待排序数组首地址2 数组中待排序元素数量3 各元素的占用空间大...
分类:
其他好文 时间:
2015-07-17 11:19:48
阅读次数:
103
使用布局文件需要将android:fastScrollEnabled="true" ,如下代码所示:
<ListView
android:id="@+id/listView" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:fastScrollE...
分类:
移动开发 时间:
2015-07-17 02:02:33
阅读次数:
130
写MFC程序ASSERT(IsWindow(pTemp->m_hWnd))报错
CRect rect;
CWnd *pWnd = GetDlgItem(IDC_picture);//IDC_picture为picture控件ID
pWnd->GetClientRect(&rect);//rc为控件的大小。
int x=rect.Height();
int y=rect.Width()...
分类:
其他好文 时间:
2015-07-16 20:02:42
阅读次数:
240