不使用背景图片实现圆角效果
2012-12-03 22:45
721 查看
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>实现圆角效果</title> <style> .item{ width: 100px; margin: 0 auto; padding: 0; font: 14px Arial; font-weight: bold; } .item p{ padding: 0 0 2px 0; margin: 0px; text-align: center; background: #cc6; border: 1px solid #000; border-top-width: 0px; } .item div{ height: 1px; overflow: hidden; background: #cc6; border-left: 1px solid #000; border-right: 1px solid #000; } .item .row1{ margin: 0 5px; background: #000; } .item .row2{ margin: 0 3px; border: 0 2px; } .item .row3{ margin: 0 2px; } .item .row4{ margin: 0 1px; height: 2px; } </style> </head> <body> <div class="item"> <div class="row1"></div> <div class="row2"></div> <div class="row3"></div> <div class="row4"></div> <p>Home</p> </div> </body> </html>
相关文章推荐
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- 用CSS实现无图片背景圆角效果
- android progressbar 使用自定义图片时的左右两端圆角效果实现
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- IE6实现图片或背景的圆角效果
- android背景图片点击效果的实现(android平台下使用点九PNG技术)
- 使用TtransitionDrawable来实现图片颜色渐变过渡或者实现button的背景颜色渐变,很漂亮的效果
- 使用js实现带有停顿效果的图片滚动(按钮控制)
- 使用viewpager嵌套实现上下左右滑动切换图片(IOS双向滚动翻页效果相同)
- <web前端>当背景图片为渐变色图片时,为避免浏览器大小问题,可以选择使用<CSS>实现渐变色,教程如下
- Android 使用开源库StickyGridHeaders来实现带sections和headers的 GridView 显示本地图片效果
- 使用PADDING-TOP:(PERCENTAGE)实现响应式背景图片
- Android 使用开源库StickyGridHeaders来实现带sections和headers的GridView显示本地图片效果
- 利用Xfermode模式实现图片的圆角效果
- Android使用ViewPager实现图片滑动预览效果
- CSS3 animation实现图片轮播效果 自动显示 无需使用js 含代码(图片轮播效果一)
- 自定义TabHost实现背景图片随选项卡切换滑动效果
- 使用CSS3线性渐变实现图片闪光划过效果