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

边栏推荐
- 为什么中建、中铁都需要这本证书?究竟是什么原因?
- 关于RDBMS和非RDBMS【数据库系统】
- I2C设备驱动程序的层次结构
- 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
- pytorch训练代码编写技巧、DataLoader、爱因斯坦标示
- 结构体大小
- Melodic + Realsense D435i 配置及错误问题解决
- D2. Chopping Carrots (Hard Version) (每日一题)
- Opencv video tracking "suggestions collection"
- 如何让一套代码完美适配各种屏幕?
猜你喜欢

Initial flask and simple application

云安全技术发展综述

51 single chip microcomputer learning notes (1)

SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你

Alibaba cloud installs mysql5.7

PS制作加载GIF图片教程
![Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]](/img/b6/62a346174bfa63fe352f9ef7596bfc.png)
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
![[eloquence] negotiation persuasion skills and Strategies](/img/01/0fcbbfcf35a6d166c14ba4215eacac.jpg)
[eloquence] negotiation persuasion skills and Strategies

Go language founder leaves Google

Syntax summary of easygui
随机推荐
sqli-labs Basic Challenges Less11-22
Awk from getting started to digging in (23) awk built-in variables argc, argc -- command line parameter transfer
安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径
Jqgrid select all cancel single line click cancel event
Spark parameter adjustment and tuning
Software testing -- 1. Outline of software testing knowledge
Practical guide for network security emergency response technology (Qianxin)
Awk from entry to earth (24) extract the IP of the instruction network card
Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer
Throwing OutOfMemoryError “Could not allocate JNI Env“
Throwing OutOfMemoryError “Could not allocate JNI Env“
That day, I installed a database for my sister... Just help her sort out another shortcut
[Nuxt 3] (十一) 传送 & 模块
Opencv video tracking "suggestions collection"
gson与fastjson
thymeleaf通过样式控制display是否显示
Summary of some problems about left value and right value [easy to understand]
MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
Why do China Construction and China Railway need this certificate? What is the reason?
Runtimeerror: CUDA out of memory (solved) [easy to understand]