当前位置:网站首页>44 Sina navigation, Xiaomi sidebar exercise
44 Sina navigation, Xiaomi sidebar exercise
2022-07-25 14:43:00 【hello_ sunny123】
One . Sina navigation bar



Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>16-padding application - Sina navigation </title>
<style> .nav {
height: 41px; border-top: 3px solid #ff8500; border-bottom: 1px solid #edeef0; background-color: #fcfcfc; /* The essence is to make h1 The text inside the box is vertically centered */ line-height: 41px; } .nav a {
/* a Belongs to an inline element At this time, it must be converted to Inline block element */ display: inline-block; height: 41px; text-decoration: none; color: #4c4c4c; font-size: 12px; padding: 0 20px; } .nav a:hover {
/* Put the mouse on it to change the background */ background-color: #eee; /* Put the mouse on it to change the text color */ color: #ff8500; } </style>
</head>
<body>
<div class="nav">
<a href="#"> Sina navigation </a>
<a href="#"> Mobile Sina </a>
<a href="#"> Mobile client </a>
<a href="#"> Microblogging </a>
<a href="#"> Three words </a>
</div>
</body>
</html>
result :

Two . Xiaomi navigation bar modification


Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style> /* 1. hold a Convert to block level elements */ a {
display: block; width: 200px; height: 40px; text-decoration: none; background-color: #535758; color: #fff; /* Imprecise text-indent: 2em; */ padding-left: 30px; font-size: 14px; line-height: 40px; } /* 2. The background color of the mouse has been changed */ a:hover {
background-color: #fc6e00; } </style>
</head>
<body>
<a href="#"> mobile phone phonecard </a>
<a href="#"> TV The box </a>
<a href="#"> The notebook Flat </a>
<a href="#"> Travel Wear </a>
<a href="#"> intelligence Router </a>
<a href="#"> health children </a>
<a href="#"> The headset sound </a>
</body>
</html>
result

边栏推荐
- Quickly set up dobbo demo
- Keys and scan based on redis delete keys with TTL -1
- Browser based split screen reading
- easygui使用的语法总结
- The input input box of H5 page pops up the numeric keypad, which needs to support decimal points
- Pytorch training code writing skills, dataloader, Einstein logo
- QObject源码剖析-d指针和q指针
- The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
- PS制作加载GIF图片教程
- 元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展
猜你喜欢

Browser based split screen reading

Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount

阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践

44 新浪导航 ,小米边栏 练习

Melody + realsense d435i configuration and error resolution

安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径

为什么中建、中铁都需要这本证书?究竟是什么原因?

IP地址分类,判断一个网段是子网超网

I2C device driver hierarchy

IP address classification, which determines whether a network segment is a subnet supernetwork
随机推荐
Gateway reports an error service_ UNAVAILABLE
VS2017大型工厂ERP管理系统源码 工厂通用ERP源码
Realsense ROS installation configuration introduction and problem solving
The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level
Software testing -- 1. Outline of software testing knowledge
Polymorphism and interface
How to make a set of code fit all kinds of screens perfectly?
Quickly set up dobbo demo
jqgrid全选取消单行点击取消事件
Pytorch training code writing skills, dataloader, Einstein logo
awk从入门到入土(20)awk解析命令行参数
Examples of bio, NiO, AIO
云安全技术发展综述
thymeleaf设置disabled
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
51单片机学习笔记(2)
Gateway 网关报错 SERVICE_UNAVAILABLE
QObject源码剖析-d指针和q指针
如何让一套代码完美适配各种屏幕?
[eloquence] negotiation persuasion skills and Strategies