CSS经典案例





start





这是标题


你可以看到这个段落是 被设定的 CSS 渲染的。

这是一个链接





CSS



CSS 实例!

这是一个段落。





CSS



这个标题设置的大小为 36 pt

这个标题设置的颜色为蓝色:blue

这个段落的左外边距为 50 像素:50px





菜鸟教程(runoob.com)




垂直导航条

在点击了选项后,我们可以添加 "active" 类来标准哪个选项被选中。





菜鸟教程(runoob.com)






Fixed Full-height Side Nav

Try to scroll this area, and see how the sidenav sticks to the page

Notice that this div element has a left margin of 25%. This is because the side navigation is set to 25% width. If you remove the margin, the sidenav will overlay/sit on top of this div.

Also notice that we have set overflow:auto to sidenav. This will add a scrollbar when the sidenav is too long (for example if it has over 50 links inside of it).

Some text..

Some text..

Some text..

Some text..

Some text..

Some text..

Some text..





菜鸟教程(runoob.com)






Fixed Top Navigation Bar

Scroll this page to see the effect

The navigation bar will stay at the top of the page while scrolling

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..

Some text some text some text some text..




下拉菜单实例|菜鸟教程(runoob.com)





下拉内容的对齐方式

left 和 right 属性指定了下拉内容是从左到右或从右到左。




下拉菜单实例|菜鸟教程(runoob.com)







导航栏上的下拉菜单

鼠标移动到 "下拉菜单" 链接先显示下拉菜单。




 
菜鸟教程(runoob.com)  




图片文本描述
1
图片文本描述
2
图片文本描述
3
图片文本描述
4

本文均来自菜鸟联盟。。。。。。。。。。。。。。。。。

你可能感兴趣的:(CSS)