menu bar (html+css)
来源:互联网 发布:程序员怎么面试 编辑:程序博客网 时间:2024/06/06 05:46
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .menu{ width: 694px; height: 50px; margin: 50px auto 0; list-style: none; padding: 0; /*decrease the distance of <a> to 0*/ font-size: 0px; } .menu li{ /*convert the li from inline element to inline-block element, to have all the attribute of block element*/ display: inline-block; width: 92px; height: 48px; border: 1px solid gold; /*decrease the distance of <a> to 0*/ font-size: 16px; /* merge the border of the adjacent li (from 2 to 1)*/ margin-right: -1px; /*make it align in center*/ text-align: center; line-height: 48px; } .menu a{ font-family:'Microsoft Yahei'; color: pink; text-decoration: none; } .menu li:hover{ background-color:bisque; } .menu a:hover{ color: red; } </style></head><body><ul class="menu"> <li><a href="">HomePage</a></li> <li><a href="">Company</a></li> <li><a href="">news</a></li> <li><a href="">jok</a></li> <li><a href="">music</a></li> <li><a href="">movie</a></li> <li><a href="">painting</a></li></ul></body></html>
阅读全文
1 0
- menu bar (html+css)
- Demo:Menu Bar
- CSS menu
- HTML/CSS: Make a Ring Menu 环形菜单
- CSS Navigation Bar
- tool bar css
- HTML Vertical Bar Chart
- The Ultimate Toolbox UI Menu bar bug
- SWT(JFace)体验之Menu、Bar...
- Windows mobile 菜单(Menu Bar) 更改解决方案
- Android:Side bar menu 实现收集
- Android笔记 - UI Menu (3) Action Bar
- Android笔记 - UI Menu (3) Action Bar
- vscode - hide menu bar - Alt Key
- Eclipse Tool Bar与Menu定制
- css menu sample
- Jquery+CSS Menu菜单
- css menu drop
- 每个数据科学专家都应该知道的六个概率分布
- 浅拷贝与深拷贝
- 股市术语
- Linux自动安装Perl模块
- java面试题
- menu bar (html+css)
- tensorflow图像数据预处理
- python Note higher-order functions
- 类的加载机制
- 基于diagonal生成器的cluster布局
- 【Construct 2】用Tilemap设计背景
- Java变量与变量的数据类型
- 【深度学习】入门理解ResNet和他的小姨子们(四)---WideResNet
- 简要谈谈javascript bind 方法