ul { list-style: none;}a { text-decoration: none;}body,h1,h2,h3,h4,h5,h6,p,ul,ol,form { margin: 0; padding: 0;}html,body { width: 100%; height: 100%; ...
分类:
Web程序 时间:
2015-07-16 18:23:54
阅读次数:
154
1.单行文字居中 这是高度为30像素的单行文字 2.多行文字不定高度居中 多行文字不定高度居中 多行文字不定高度居中 多行文字不定高度居中 =============================.box {width: 800px;margin: 50px auto;bo...
分类:
其他好文 时间:
2015-07-16 18:22:57
阅读次数:
87
.box { width: 100%; overflow: hidden; text-align: center; /*font-size: 0;*/ border: 1px solid #000000; margin: 50px auto;}.box .car { disp...
分类:
其他好文 时间:
2015-07-16 16:33:04
阅读次数:
96
json内容;<img src="/newsfile/1506271512489.jpg" width="600" height="450" alt="" /></p><p style=&q...
分类:
Web程序 时间:
2015-07-16 16:17:54
阅读次数:
146
<RelativeLayoutandroid:id="@+id/rl_share"android:layout_width="match_parent"android:layout_height="match_parent"android:visibility="gone"><RelativeLayoutandroid:id="@+id/other_layout_top"android:layout_width="match_parent"android:layout_height="150..
分类:
其他好文 时间:
2015-07-16 14:27:15
阅读次数:
134
一般的文字截断(适用于内联与块):ExampleSourceCode[www.mb5u.com].text-overflow{display:block;/*内联对象需加*/width:31em;word-break:keep-all;/*不换行*/white-space:nowrap;/*不换行*...
分类:
Web程序 时间:
2015-07-16 13:39:34
阅读次数:
1029
-(void)scrollViewDidZoom:(UIScrollView *)scrollView{ CGFloat offsetX = (scrollView.bounds.size.width > scrollView.contentSize.width)? (scrollView.boun...
分类:
其他好文 时间:
2015-07-16 13:15:01
阅读次数:
150
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layou...
分类:
移动开发 时间:
2015-07-16 11:57:24
阅读次数:
221
box-flex:也就是让子容器针对父容器的宽高属性按照一定的规则来划分
Eg:
html代码:
01
02
03
CSS样式:
body,div { background:#fff; margin:0; padding:0;}
.wrap { width:600px; height:200px; color:#fff; margin:20px 0 0 20px; te...
分类:
Web程序 时间:
2015-07-16 11:46:57
阅读次数:
157
如果要适合于所有的Android版本,可以在多个LinearLayout放置用于显示分隔线的View。例如,放一个ImageView组件,然后将其背景设为分隔线的颜色或图像,分隔线View的定义代码如下:
<ImageView
android:layout_width="fill_parent"
android:layout_height="1dp"...
分类:
移动开发 时间:
2015-07-16 02:12:18
阅读次数:
303