码迷,mamicode.com
首页 >  
搜索关键字:vertical    ( 1534个结果)
jspSmartUpload实现图片的批量上传
batchUpload.html 批量上传 .tableStyle { border: 1px solid blue; padding: 1px; height: 45px; vertical-align: middle; } .tableStyle .tdStyle { /* 派生选择器+类选择器 */ border: 1px solid gr...
分类:Web程序   时间:2014-12-06 19:32:43    阅读次数:194
自定义对话框
LinearLayout sc = new LinearLayout(this); // sc.setBackgroundColor(R.color.white); sc.setBackgroundResource(R.color.black); sc.setOrientation(LinearLayout.VERTICAL); // TextView txbg = new TextView(this); // txbg.setBackgroundDrawable(getResources().getDra...
分类:其他好文   时间:2014-12-05 14:20:52    阅读次数:145
图片和文字对齐的方法
文字旁边搭配图片时,发现图片比文字靠上,原来默认的情况是图片顶对齐而文字底对齐,通过设置css属性可以使得图片与文字对齐。方法一、设置各对象的vertical-align属性,属性说明:baseline-将支持valign特性的对象的内容与基线对齐sub-垂直对齐文本的下标super-垂直对齐文本的...
分类:其他好文   时间:2014-12-04 17:49:49    阅读次数:175
css3实现圆点
效果:CSS:.dot{width:14px;height:14px;font:12px/18pxArial;border-radius:7px;display:inline-block;vertical-align:middle;position:relative;box-shadow:0px1p...
分类:Web程序   时间:2014-12-03 12:08:22    阅读次数:314
不定高度内容垂直居中
效果:html:一旦你娶了中国太太,就等于娶了她全家,不到半年,她爹、她妈、她二姐、她二姐的孩子就排着队全来了……我好端端的一个美国家庭,一眨眼工夫,就被中国人给占领了。css:#demo{display:table-cell;/*表格单元格*/vertical-align:middle;/*ver...
分类:其他好文   时间:2014-12-03 11:51:51    阅读次数:218
【LeetCode】Container With Most Water 解题报告
【题目】 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,...
分类:其他好文   时间:2014-12-02 10:38:56    阅读次数:170
12月1日
//Activity里面编辑布局//LinearLayoutlayout=newLinearLayout(this);//LayoutParamsparam=newLayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT);//layout.setOrientation(layout.VERTICAL);//TextViewtv=newTextView(this);//tv.setTex..
分类:其他好文   时间:2014-12-02 09:06:13    阅读次数:181
vertical-align及IE7下的inline-block
在IE7下,是不支持inline-block元素的,当对块级元素如dl进行inline-block样式设置时,在IE7浏览器是下样式是不会生效的。若要在IE7下实现将块级元素设置为内联元素,可以这样进行设置:*display:inline;*zoom:1; //获取布局在这样设置之后,就能继续设置....
分类:其他好文   时间:2014-12-01 20:38:10    阅读次数:174
::before
li::before{ content:url(./images/icons/yes.png); padding-right:6px; vertical-align: middle; } 可用于在li前面加图片内容
分类:其他好文   时间:2014-11-29 18:54:52    阅读次数:181
【Leetcode】Container With Most Water in JAVA
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin...
分类:编程语言   时间:2014-11-29 10:30:19    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!