当前位置:网站首页>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

边栏推荐
- 用GaussDB(for Redis)存画像,推荐业务轻松降本60%
- English语法_不定代词 - other / another
- Under the epidemic, the biomedical industry may usher in breakthrough development
- Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]
- Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
- awk从入门到入土(23)awk内置变量ARGC、ARGC--命令行参数传递
- MySQL的登陆【数据库系统】
- 阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践
- 51 single chip microcomputer learning notes (2)
- 国联证券买股票开户安全吗?
猜你喜欢

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

Wechat official account official environment online deployment, third-party public platform access

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

EDA chip design solution based on AMD epyc server
![[MySQL must know and know] trigger | permission management](/img/59/cb805d972097a6a8ed7f3ae454a91d.png)
[MySQL must know and know] trigger | permission management

006 operator introduction

微信公众号正式环境上线部署,第三方公众平台接入

Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud

English grammar_ Indefinite pronoun - other / other

sudo rosdep init Error ROS安装问题解决方案
随机推荐
51 single chip microcomputer learning notes (2)
filters获取data中的数据;filters使用data中的数据
Yes, UDP protocol can also be used to request DNS server
kibana操作es
Vs2017 large factory ERP management system source code factory general ERP source code
QObject源码剖析-d指针和q指针
How to use the random number function of JMeter
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
Gonzalez Digital Image Processing Chapter 1 Introduction
[cartographer_ros] VIII: Official demo parameter configuration and effect
【MySQL必知必会】触发器 | 权限管理
IP地址分类,判断一个网段是子网超网
41 图片背景综合-五彩导航图
The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%
Gateway reports an error service_ UNAVAILABLE
Resource not found: rgbd_launch 解决方案
元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展
D2. Chopping Carrots (Hard Version) (每日一题)
牛客多校 E G J L
Jqgrid select all cancel single line click cancel event