当前位置:网站首页>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>
边栏推荐
- Talk about smart Park
- common commands
- Kafka-connect将Kafka数据同步到Mysql
- Codeforces Round #633 (Div. 2) B. Sorted Adjacent Differences
- Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
- 5. Discrete control and continuous control
- Understanding of maximum likelihood estimation
- ANSI / nema- mw- 1000-2020 magnetic iron wire standard Latest original
- Getting started STM32 -- how to learn stm32
- qt--将程序打包--不要安装qt-可以直接运行
猜你喜欢
QT -- package the program -- don't install qt- you can run it directly
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
About snake equation (1)
快速熟知XML解析
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
写一个纯手写的qt的hello world
redis的持久化方式-RDB和AOF 两种持久化机制
STM32GPIO口的工作原理
Gnuradio 3.9 using OOT custom module problem record
随机推荐
qt--將程序打包--不要安裝qt-可以直接運行
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况---材料的添加
不算不知道,花呗分期的真实利率居然这么高
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况----几何模型的建立
Common operations of numpy on two-dimensional array
Qml 字体使用pixelSize来自适应界面
2022 free test questions of fusion welding and thermal cutting and summary of fusion welding and thermal cutting examination
2、TD+Learning
qt-使用自带的应用框架建立--hello world--使用min GW 32bit
The foreach map in JS cannot jump out of the loop problem and whether foreach will modify the original array
2022 safety officer-a certificate free examination questions and safety officer-a certificate mock examination
4. Apprentissage stratégique
qt--将程序打包--不要安装qt-可以直接运行
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
腾讯游戏客户端开发面试 (Unity + Cocos) 双重轰炸 社招6轮面试
ArrayList源码深度剖析,从最基本的扩容原理,到魔幻的迭代器和fast-fail机制,你想要的这都有!!!
Kindle operation: transfer downloaded books and change book cover
break algorithm---刷题map
Talk about smart Park
小金额炒股,在手机上开户安全吗?