In order to make the page display consistent between different browsers, CSS style clearing and resetting is a must for front-end development. Based on previous experience, we have compiled a CSS reset style code for reference. Copy code The code is as follows:@charset "utf-8"; body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, pre, dl, dt, dd, ul, ol, li, th, td, div, span, img, fieldset, lengend, button, input, select, textarea{margin: 0;padding: 0;} /* color & background */ html{color:#000; background:#FFF;} /* font */ body, button, input, select, textarea { /* for ie */ font: 12px/18px Arial, Verdana, Microsoft YaHei; } /* fix center */ html,body {height: 100%;margin: 0 auto;} /* h1~h6 */ h1 {font-size: 18px;} h2 {font-size: 16px;} h3 {font-size: 14px;} h4, h5, h6 {font-size: 100%;} /* a */ a { text-decoration: none; } a:hover { text-decoration: underline; } /* list */ ul,ol {list-style: none;} /* img border */ fieldset,img{border: 0} /* table */ table {border-collapse: collapse;border-spacing: 0;font:inherit;} /* margin */ .alpha {margin-left: 0;} .omega {margin-right: 0;} /* float & clear */ .left{float:left;} .right{float:right;} .clear {clear: both;display: block;} /* clearfix */ .clearfix:after{content:".";display:block;} .clearfix{display:inline-table;} /* Hides from IE-mac */ * html .clearfix{height:1%;} .clearfix{display:block;} /* End hide from IE-mac */ *+html .clearfix{min-height:1%;}/* IE7 */ |
<<: Using shadowsocks to build a LAN transparent gateway
>>: Vue3+Vite+TS implements secondary encapsulation of element-plus business components sfasga
After pressing Enter on the webpage, the form is a...
Recently, there is a need to automatically search...
Everyone knows that data in MySQL needs to be wri...
Chatbots can save a lot of manual work and can be...
There is only one solution, that is to change the...
This article is based on MySQL 8.0 This article i...
This article uses the element official website an...
Recently I wrote in my blog that in the project l...
Install ZLMediaKit on centos6 The author of ZLMed...
1. Download the latest nginx docker image $ docke...
Next, I will create two tables and execute a seri...
Table of contents Question: When the button is cl...
KDE Abbreviation for Kool Desktop Environment. A ...
I. Introduction 1: SSL Certificate My domain name...
1. CSS3 animation ☺CSS3 animations are much easie...