共 13 篇文章 |
|
.border-image-all{ border:27px solid #000;border-image有六大属性值,分别是:图片地址border-image-source、图片切片border-image-slice、图片宽度border-image-width、图片外凸border-image-outset、图片重复border-image-repeat图片地址border-image-source叫引入图片地址属性,我这个属性的属性值是比较好理解滴,因为就只有两个属性值... 阅41 转0 评0 公众公开 16-10-19 17:58 |
三、line-height与line boxes高度css中起高度作用的应该就是height以及line-height了吧!读过我前面有关自适应按钮文章的人可能会发现我使用了line-height代替了height,其原因在于:IE6,IE7下,类似inline-block属性的元素里如果有block属性的元素,如果该block haslayout,则该标签会冲破外部inline-block的显示而宽度100%显示,从使按钮自... 阅25 转0 评0 公众公开 16-10-18 11:13 |
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> 多行文字实现垂直居中 </title> <meta http-equiv="Content-Type" content... 阅81 转0 评0 公众公开 12-04-27 23:13 |
body { font: font-style font-variant font-weight font-size line-height font-family;.element { min-height: 500px _height: 500px }border-width: 0px 300px 300px 300px;/* IE8, FF, Saf, Opera (Everything but IE 6,7) */ html>/**/body #cuatro { color: red }ie;.shadow { -moz-box-shadow:... 阅62 转0 评0 公众公开 12-04-27 23:12 |
阅1130 转5 评0 公众公开 12-03-29 16:13 |
这个 span 元素的宽度是当前字体尺寸的 0.7 倍。span 元素的字体尺寸是 400%,行高是 80%。span 中的字母字体是 "Algerian"</p></body></html> 阅296 转0 评0 公众公开 12-03-29 15:57 |
}div.header,div.footer{padding:0.5em;</p></div><div class="footer">Copyright 2008 by YingKe Investment.</div></div></body></html> 阅2879 转40 评0 公众公开 12-03-29 15:57 |
</p><p class="two">而 div 元素不会显示出来!</p><div>div 元素的内容不会显示出来!</div></body></html><!---p div默认情况下是块元素,但是可以通过设置display:inline;的方式,将其改为行元素,这样就可以显示在一行之中了。可以将上述程序中的display:inline;改为display:bolck... 阅201 转0 评0 公众公开 12-03-29 15:56 |
如何让包围元素在视觉上包围浮动元素呢?需要在这个元素中的某个地方应用 clear:我们可以添加一个空元素并且清理它。*/</style></head><body><div class="news"><img src="news-pic.jpg" /><p>some text</p></div>}.news img { float: left;}<div class="news&q... 阅128 转0 评0 公众公开 12-03-29 14:30 |
}div.header,div.footer{padding:0.5em;</p></div><div class="footer">Copyright 2008 by YingKe Investment.</div></div></body></html> 阅878 转2 评0 公众公开 12-03-29 14:09 |