当前位置:网站首页>39 简洁版小米侧边栏练习
39 简洁版小米侧边栏练习
2022-07-25 14:40:00 【hello_sunny123】


代码:
<!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.把a转化为块级元素 */ a {
display: block; width: 322px; height: 52px; text-decoration: none; background-color: #535758; color: #fff; text-indent: 2em; font-size: 14px; } /* 2.鼠标经过更换背景颜色 */ a:hover {
background-color: #fc6e00; } </style>
</head>
<body>
<a href="#">手机 电话卡</a>
<a href="#">电视 盒子 </a>
<a href="#">笔记本 平板 </a>
<a href="#">出行 穿戴 </a>
<a href="#">智能 路由器 </a>
<a href="#">健康 儿童</a>
<a href="#">耳机 音响</a>
</body>
</html>
运行结果



代码
<!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> div {
width: 200px; height: 40px; background-color: pink; line-height: 40px; } </style>
</head>
<body>
<div>我要垂直居中</div>
</body>
</html>
运行结果

边栏推荐
- 【cartographer_ros】八: 官方Demo参数配置和效果
- Pytorch training code writing skills, dataloader, Einstein logo
- Development of uni app offline ID card identification plug-in based on paddleocr
- Bond0 script
- Jmeter的随机数函数怎么用
- 用GaussDB(for Redis)存画像,推荐业务轻松降本60%
- BIO、NIO、AIO示例
- PS making and loading GIF pictures tutorial
- Throwing OutOfMemoryError “Could not allocate JNI Env“
- Paddlenlp's UIE relationship extraction model [executive relationship extraction as an example]
猜你喜欢

冈萨雷斯 数字图像处理 第一章绪论

Go语言创始人从Google离职

easygui使用的语法总结

The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level

51 single chip microcomputer learning notes (2)

Melodic + Realsense D435i 配置及错误问题解决
![[MySQL must know and know] trigger | permission management](/img/59/cb805d972097a6a8ed7f3ae454a91d.png)
[MySQL must know and know] trigger | permission management

Filters get the data in data; Filters use data in data

DVWA practice - brute force cracking

Gameframework making games (I)
随机推荐
How to design a high concurrency system?
51单片机学习笔记(1)
用GaussDB(for Redis)存画像,推荐业务轻松降本60%
国联证券买股票开户安全吗?
DVWA practice - brute force cracking
[Nuxt 3] (十一) 传送 & 模块
PS制作加载GIF图片教程
【口才】谈判说服技巧及策略
Introduction to PHP
基于浏览器的分屏阅读
【cartographer_ros】八: 官方Demo参数配置和效果
Can the variable name be in Chinese? Directly fooled people
Resource not found: rgbd_ Launch solution
easygui使用的语法总结
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
Numpy basic package for data analysis
awk从入门到入土(21)awk脚本调试
PT100 temperature measurement circuit diagram (AD590 typical temperature measurement circuit)
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%