<html> <head> <title>css圆角效果-www.phpff.com</title> <meta http-equiv="content-type" content="text/html; charset=gb2312"> <style type="text/css"> div.RoundedCorner{background: #9BD1FA; width:200px} b.rtop, b.rbottom{display:block;background: #FFF} b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #9BD1FA} b.r1{margin: 0 5px} b.r2{margin: 0 3px} b.r3{margin: 0 2px} b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px} </style> </head> <body> <div class="RoundedCorner"> <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> 无图片实现圆角框,www.phpff.com <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b> </div> </body> </html>
分类目录归档:css
css 字间距设置
letter-spacing:4px;
中文使用 letter-spacing
英文网站使用word-spacing
etter-spacing和word-spacing这两个属性都用来添加他们对应的元素中的空白。letter-spacing添加字母之间的空白,而word-spacing添加每个单词之间的空白。请大家注意,word-spacing对中文无效。
自适应网页设计(Responsive Web Design)
自适应网页设计中可以通过css来根据不同的浏览器尺寸控制不同的样式,在正常的浏览器中设置了固定的宽度,在小与800的浏览器中显示的宽度会自动变为100%显示。
主要用到@media (max-width: 800px)
css文件如下
#footer_container {
width: 980px;
height:auto;
float: left;
background-color:#04121F;
font-family:Arial,Sans-serif;
}
#footer {
margin:0 auto;
width: 980px;
height:auto;
}
@media (max-width: 800px) {
#footer_container {
width: 100%;
height:auto;
float: left;
background-color:#04121F;
font-family:Arial,Sans-serif;
}
#footer {
margin:0 auto;
width: 100%;
height:auto;
}
}