当前位置:网站首页>body有8px的神秘边距
body有8px的神秘边距
2022-07-08 00:05:00 【大大。】
首先,你需要知道为什么会有8px的神秘边距:
很多元素默认有一个8px的 margin,而且在不同浏览器上表现效果不同
在项目中,通常都是使用reser.css重置所有的样式表,可以保证在所有浏览器下,项目展示的样式是一致的:
(1)在项目中应用:在asset的css中插入reset.css文件,
// main.js
import @/assets/css/reset.css
(2)或者在demo这样写:
<style> * {
margin: 0; padding: 0; } </style>
边栏推荐
- Redux usage
- 子矩阵的和
- Application of state mode in JSF source code
- Tencent game client development interview (unity + cocos) double bombing social recruitment 6 rounds of interviews
- Gnuradio3.9.4 create OOT module instances
- 2022 operation certificate examination for main principals of hazardous chemical business units and main principals of hazardous chemical business units
- 生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
- 5. Discrete control and continuous control
- Common fault analysis and Countermeasures of using MySQL in go language
- 2022 examination for safety production management personnel of hazardous chemical production units and new version of examination questions for safety production management personnel of hazardous chem
猜你喜欢

Leetcode exercise - Sword finger offer 36 Binary search tree and bidirectional linked list

Gnuradio3.9.4 create OOT module instances

写一个纯手写的qt的hello world

Guojingxin center "APEC investment +": some things about the Internet sector today | observation on stabilizing strategic industrial funds

break net

About snake equation (2)

MATLAB R2021b 安装libsvm

LeetCode 练习——剑指 Offer 36. 二叉搜索树与双向链表

QT--创建QT程序

Kindle operation: transfer downloaded books and change book cover
随机推荐
Matlab code on error analysis (MAE, MAPE, RMSE)
Codeforces Round #643 (Div. 2)——B. Young Explorers
项目经理有必要考NPDP吗?我告诉你答案
npm 內部拆分模塊
快速熟知XML解析
LeetCode 练习——剑指 Offer 36. 二叉搜索树与双向链表
Introduction to grpc for cloud native application development
Gnuradio 3.9 using OOT custom module problem record
The difference between distribution function and probability density function of random variables
qt--将程序打包--不要安装qt-可以直接运行
2022 tea master (intermediate) examination questions and tea master (intermediate) examination skills
批次管控如何实现?MES系统给您答案
子矩阵的和
2021 Shanghai safety officer C certificate examination registration and analysis of Shanghai safety officer C certificate search
Matlab method is good~
Tencent game client development interview (unity + cocos) double bombing social recruitment 6 rounds of interviews
Matlab code about cosine similarity
正则表达式
5. Discrete control and continuous control
2022 high altitude installation, maintenance and demolition examination materials and high altitude installation, maintenance and demolition operation certificate examination