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

边栏推荐
- awk从入门到入土(23)awk内置变量ARGC、ARGC--命令行参数传递
- Opencv video tracking "suggestions collection"
- Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
- 006 operator introduction
- DVWA practice - brute force cracking
- 没错,请求DNS服务器还可以使用UDP协议
- MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
- MySQL的登陆【数据库系统】
- 51 single chip microcomputer learning notes (1)
- Yes, UDP protocol can also be used to request DNS server
猜你喜欢

51 single chip microcomputer learning notes (1)
![[MySQL must know and know] trigger | permission management](/img/59/cb805d972097a6a8ed7f3ae454a91d.png)
[MySQL must know and know] trigger | permission management

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

How to design a high concurrency system?

云安全技术发展综述

【口才】谈判说服技巧及策略

Idea error failed to determine a suitable driver class

Maya modeling exercise

Go language founder leaves Google

基于PaddleOCR开发uni-app离线身份证识别插件
随机推荐
结构体大小
Niuke multi school E G J L
Go language founder leaves Google
网络安全应急响应技术实战指南(奇安信)
Resource not found: rgbd_ Launch solution
Yes, UDP protocol can also be used to request DNS server
filters获取data中的数据;filters使用data中的数据
C language and SQL Server database technology
Realsense-Ros安装配置介绍与问题解决
Pytorch training code writing skills, dataloader, Einstein logo
变分(Calculus of variations)的概念及运算规则
OverTheWire-Natas
I2C设备驱动程序的层次结构
PS making and loading GIF pictures tutorial
SSH服务器拒绝了密码
Alibaba cloud installs mysql5.7
SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你
006操作符简介
Introduction to PHP
Throwing OutOfMemoryError “Could not allocate JNI Env“