CSS实现圆角的 25 种技巧分享
原文地址:http://www.devwebpro.com/25-rounded-corners-techniques-with-css/
* This post is regularly updated. *
Rounded corners is one of the most popular and frequently requested
CSS techniques even the father of internet Google
also launch the rounded corners style markup
with her Google Adsense
and let users to custom their ads recently. Actually, there are a lot
of methods and techniques to create rounded corners with Cascading
Stylesheets. Some are quite simple just need pure CSS, and a part of
them need 2 to 4 background corner images and Javascript. So i select
some quality and usable rounded corners with CSS techniques for you to
have the best choices.
Note:
Here are some additional related
articles on DevWebPro you should also take a look at:
- Advantages of Using Corners Without Images
- Smooth Your Design and Round Those Corners!
- Rounded Corners Using CSS
Techniques
ThrashBox – create rounded-corner boxes with visual flare and the
absolute minimal amount of semantically correct markup.
Even More Rounded Corners With CSS – nice technique with fluid
rounded corner dialogs and support for borders, alpha transparency
throughout, gradients and patterns.
DomCorners – a very simple technique for getting rounded corners.
virtuelvis.com Rounded corners in CSS – allow you to retrofit this to
existing designs without altering any markup.
Transparent custom corners and borders version 2 – a technique for
creating custom corners and borders with optional alpha transparency.
CSS Teaser Box with rounded corners – by Roger Johansson, the same
author of Transparent custom corners and borders version 2.
News List – was designed to display links to recent news.
CSS Liquid Round Corners – a re-usable rounded box, note that it
needs total 6 images for wrap the corners.
Anti-aliased Nifty Corners – based on Nifty Corners and modified by
Steven Wittens.
Simple Box by te
相关文档:
CSS 盒模型
网页设计中的每个元素都是长方形的盒子。盒子的尺寸是怎样精确计算的,请看下图:
如果是 Firebug 用户的话(基本和前端有关的都会用到 Firebug 吧 – 糖伴西红柿),就会很熟悉下面的图表了。
这个图表很好地展示了作用于页面上任意盒子的数值。
注意以上两个例子中,margi ......
查看原文:http://www.csswang.com/css/110.html
导航结构在网站设计中是起到决定性作用的,导航菜单/栏常常通过颜色、排版、形状和一些图片来帮助网站创造更好的视觉和感受,它是网页设计的关键元素。
虽然网站导航菜单的外观是网页设计中关系到整个设计成败与否的关键,但视觉效果也不能影响到网站可用性。最理想的 ......
一个只用CSS就可以设置网页中居中层的方法。
今天重新尝试的时候居然不好用了。
还好以前的页还有,还能打开。
代码一摸一样就是不好用。
于是乎一段段的删除,希望能找到点线索。
css删得只剩下这段设置代码,不好用。
javascript中难道做手脚了,接着删,还是不好用。
最后删没了终于 ......
网页设计中CSS布局是很重要的部分,下面介绍几种检查调试CSS布局的有效方法。
1.检查HTML元素是否有拼写错误、是否忘记结束标记
即使是老手也经常会弄错div的嵌套关系。可以用dreamweaver的验证功能检查一下有无错误。
2.检查CSS是否书写正确
检查一下有无拼写错误、是否忘记结尾的}等。可以利用 ......
应用样式的方法有三种:外部(external)、内部(internal)和内联(inline)。其中前两者的基本格式为:
selector { property : value; }
CSS中可以使用不同的selector(选择符)来应用样 ......