码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
常用base.css
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
多行文字水平垂直居中在div
1.单行文字居中 这是高度为30像素的单行文字 2.多行文字不定高度居中 多行文字不定高度居中 多行文字不定高度居中 多行文字不定高度居中 =============================.box {width: 800px;margin: 50px auto;bo...
分类:其他好文   时间:2015-07-16 18:22:57    阅读次数:87
未知宽高图片水平垂直居中在div
.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
angular ng-bind-html 对src路径失效 解决方案
json内容;<img src="/newsfile/1506271512489.jpg" width="600" height="450" alt="" /></p><p style=&q...
分类:Web程序   时间:2015-07-16 16:17:54    阅读次数:146
cc_美团 商品详情页面分享页面实现
<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
css 一行内显示 超出自动隐藏
一般的文字截断(适用于内联与块):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
UIScrollView 缩放图片始终保持图片center在屏幕中央
-(void)scrollViewDidZoom:(UIScrollView *)scrollView{ CGFloat offsetX = (scrollView.bounds.size.width > scrollView.contentSize.width)? (scrollView.boun...
分类:其他好文   时间:2015-07-16 13:15:01    阅读次数:150
Android 下拉刷新控件的使用
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
css3中 弹性盒模型布局之box-flex
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中添加分隔线
如果要适合于所有的Android版本,可以在多个LinearLayout放置用于显示分隔线的View。例如,放一个ImageView组件,然后将其背景设为分隔线的颜色或图像,分隔线View的定义代码如下: <ImageView android:layout_width="fill_parent" android:layout_height="1dp"...
分类:移动开发   时间:2015-07-16 02:12:18    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!