当前位置:网站首页>W3School导航栏练习
W3School导航栏练习
2022-07-27 12:48:00 【不好意思,此人不存在】
W3School导航栏练习
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>导航条</title>
<link rel="stylesheet" href="/layout/css/reset.css">
<style> /* 设置nav的大小 */ .nav{
width: 1210px; height: 48px; background-color: #E8E7E3; margin: 100px auto; } /* 设置nav中li */ .nav li{
/* 设置li向左浮动,使菜单横向排列 */ float: left; /* 设置li的高度 */ /* height: 48px; */ /* 将文字在父元素中垂直居中 */ line-height: 48px; } /* 设置a的样式 */ .nav a{
/* 将a转换为块元素 */ display: block; padding: 0 39px; /* 去除下划线 */ text-decoration: none; color: #777777; font-size: 18px; } .nav li:last-child a{
padding: 0 46px 0 45px; } /* 设置鼠标移入效果 */ .nav a:hover{
background-color: #3f3f3f; color: #E8E7E3; } </style>
</head>
<body>
<!-- 创建导航条的结构 -->
<ul class="nav">
<li>
<a href="#">HTML/CSS</a>
</li>
<li>
<a href="#">Brower Side</a>
</li>
<li>
<a href="#">Server Side</a>
</li>
<li>
<a href="#">Programming</a>
</li>
<li>
<a href="#">XML</a>
</li>
<li>
<a href="#">Web Building</a>
</li>
<li>
<a href="#">Reference</a>
</li>
</ul>
</body>
</html>
效果图:

边栏推荐
- A survey of video game addictive behavior research
- The sparksubmit. Main () method submits external parameters and remotely submits the standalone cluster task
- Do you really understand CMS garbage collector?
- 轮播图
- feign的动态代理
- 详述throw与throws
- Set接口
- PySide6/PyQt开发经验总结(2) - 设置快捷键
- js真伪数组转换
- [node+ts] build node+typescript project
猜你喜欢

BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)

Detail throw and throws

视频游戏沉迷行为研究综述

@Simple understanding and use of conditionalonproperty

详述HashSet的add方法

Minimally invasive brain science broke the listing: the company's market value is HK $14.3 billion, and minimally invasive medical is the major shareholder

分布式系统架构理论与组件

Overview of famous inner classes and anonymous inner classes

Why does the class annotated with @configuration generate cglib proxy?

SparkSubmit.main()方法提交外部参数,远程提交standalone集群任务
随机推荐
正向预查和反向预查
开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能
Poj2446 chessboard [maximum matching of bipartite graph]
Mongodb slow query and index
Gartner 权威预测未来4年网络安全的8大发展趋势
[expression calculation] double stack: general solution of expression calculation problem
粘制定位
Background and framework introduction and basic environment preparation of hucang integrated e-commerce project
Security measures for tcp/ip protocol vulnerabilities
"Game engine light in light out" 4.1 unity shader and OpenGL shader
ArrayList常用方法总结
银行案例|Zabbix跨版本升级指南,4.2-6.0不香吗?
C program debugging and exception handling (try catch)
7-16 daily sword finger offer II 041. Average value of sliding window
JS true / false array conversion
Is it easy to find a job after programmer training and learning
Detail try catch finally
Getting started for beginners: build your own blog with WordPress
详述throw与throws
Reptile