1.line-height.2.line-height+vertical-align.3.text-align.4.position.5.margin.在IE6下,如果相邻元素设置了float,然后再设置了margin-left或者margin-right,则给每一个块添加属性:*display:i...
分类:
其他好文 时间:
2015-08-31 11:38:01
阅读次数:
123
第一种从line-height的语义来来讲,line表示hang再贴切不过了,colume纵列或者柱子也很形象,缺点太长了第二种组合模拟rowspan,colspan而来,想必这个col也是colume的缩写吧第三种简单粗暴直接用.tr.td不过这不被推荐,但推荐是个毛线,浏览器都不遵循,我们遵循个...
分类:
其他好文 时间:
2015-08-27 17:59:17
阅读次数:
162
.btn{ display:inline-block; padding:6px 12px; margin-bottom:0; font-size:14px; font-weight:normal; line-height:1.428571429; text-align:center; white-s...
分类:
其他好文 时间:
2015-08-26 23:58:23
阅读次数:
130
text-indent:35px;//首行缩进line-height:12px;//行高,高度和外层高度一样就会居中box-shadow:inset 0px 0px 2px #ccc;contenteditable="true"//使得div变为可编辑Math.min.apply(null,arra...
分类:
Web程序 时间:
2015-08-26 19:57:30
阅读次数:
141
<!DOCTYPE?html>
<html>
<head>
<title></title>
<style>
????div{width:300px;
????????height:50px;
????????line-height:?50px;
????????border:0px?solid?red;
??????...
分类:
Web程序 时间:
2015-08-26 00:17:53
阅读次数:
164
一、区别区别体现在子元素继承时,如下:父元素设置line-height:1.5会直接继承给子元素,子元素根据自己的font-size再去计算子元素自己的line-height。父元素设置line-height:150%是计算好了line-height值,然后把这个计算值给子元素继承,子元素继承拿到的...
分类:
其他好文 时间:
2015-08-20 00:56:20
阅读次数:
132
/*CSS*/.waps{ background:url(07158.bmp) no-repeat top center fixed; width:1004px; text-align:center; line-height:28px; font-size:12px; font-family:Ari...
分类:
Web程序 时间:
2015-08-19 12:58:14
阅读次数:
163
/*CSS*/.waps{ background:url(07158.bmp) no-repeat top center fixed; width:1004px; text-align:center; line-height:28px; font-size:12px; font-family:Ari...
分类:
Web程序 时间:
2015-08-19 11:04:26
阅读次数:
216
line-height:使用百分比设置行间距在大多数浏览器中默认行高大约是 110% 到 120%。使用像素值设置行间距在大多数浏览器中默认行高大约是 20px。使用数值来设置行间距默认行高大约是 1white-space: nowrap来自:w3school在元素中禁止文本折行
分类:
Web程序 时间:
2015-08-18 18:37:00
阅读次数:
151
@media?screen?and?(min-width:1080px){
.box{?width:?1080px;}.content{width:?1040px;}
.img{height:180px;}
.img{font-size:?48px;line-height:?180px;}
.title{font-size:?46px;line-height:?100px...
分类:
Web程序 时间:
2015-08-18 12:29:50
阅读次数:
268