层叠样式表(CSS)是现代的网站设计不可或缺的重要组成部分,就像10年前那样,没有它网站就会显得是丑陋的。随着时间的推移,网络中的CSS的教程质量已有显著的提高。
这里罗列的是21个神奇的CSS技巧,您也可能是从来没有想过居然还可以通过CSS这样子来处理问题的。
Amazing demonstration of how to create a cross browser image gallery using just CSS.
This tutorial demonstrates a crazy way to create an image map using just CSS.
Create a lighbox using just CSS with no JavaScript required.
Replace the submit buttons with images using CSS, degrades back to submit button if CSS is disabled.
Amazing tutorial on how to create an animated navigation menu using just CSS.
Create a tree like navigation from nested lists of links. Very useful for creating sitemaps.
Create eye-catching titles with nice gradient effect using just CSS.
Very easy to understand tutorial on how to create a menu list using either CSS border-style or background-image property.
Amazing way to create a liquid layout using negative margins
This might occur to you some time when a content page has not enough content to fill the page, so footer also moves up due to this. This tutorial shows you how to deal with this and make footer stay at bottom even when content is not enough.
Create a nice scalable breadcrumb navigation
Make the blockquotes in your content or blog posts standout from rest of content. Very useful to highlight major points in long content pages.
Display graphs on your website using just CSS without any JavaScript or other heavy plugins.
This article shows all possible ways you can use to stack up an unordered list into multiple columns.
If you have ever visited Learning jQuery then you might have noticed the awesome date display next to each blog post. This tutorial will show you how to achieve that using CSS Sprites.
Display date and comments on your blog posts in a nice way that takes less space.
Create a nice image viewer using CSS that will work even if user has disabled flash and JavaScript in the browser.
Use the CSS background-image property to preload images without any javascript required.
This tutorial shows you how to make page content fade away into the bottom of the page just like the fortuito.us blog.
这篇文章介绍的是如何使用CSS的border属性来实现某些很酷的效果。您会惊讶于CSS的border属性达到的效果。 |