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

边栏推荐
- D2. Chopping Carrots (Hard Version) (每日一题)
- 006 operator introduction
- [cartographer_ros] VIII: Official demo parameter configuration and effect
- 优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
- Educational codeforces round 132 (rated for Div. 2) C, d+ac automata
- [nuxt 3] (XI) transmission & module
- I2C设备驱动程序的层次结构
- jqgrid全选取消单行点击取消事件
- Examples of bio, NiO, AIO
- awk从入门到入土(20)awk解析命令行参数
猜你喜欢

filters获取data中的数据;filters使用data中的数据

Resource not found: rgbd_ Launch solution

Idea error failed to determine a suitable driver class

006 operator introduction

I2C设备驱动程序的层次结构

Gameframework making games (II) making UI interface

Browser based split screen reading

Melodic + Realsense D435i 配置及错误问题解决

D2. Chopping Carrots (Hard Version) (每日一题)

DVWA practice - brute force cracking
随机推荐
【MySQL必知必会】触发器 | 权限管理
C language and SQL Server database technology
Spark 参数配置的几种方法
kibana操作es
基于AMD EPYC服务器的EDA芯片设计解决方案
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]
H5页面input输入框弹起数字键盘,需要支持小数点
Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
变分(Calculus of variations)的概念及运算规则
冈萨雷斯 数字图像处理 第一章绪论
如何让一套代码完美适配各种屏幕?
物理量与单位符号的书写标准
Under the epidemic, the biomedical industry may usher in breakthrough development
How to use the random number function of JMeter
006 operator introduction
基于浏览器的分屏阅读
Runtimeerror: CUDA out of memory (solved) [easy to understand]
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
Flask SSTI injection learning
[MySQL must know and know] trigger | permission management