- Mastering CSS
- Rich Finelli
- 175字
- 2021-07-08 09:45:49
Loading Eric Meyer's CSS reset
There are a few different resets to choose from, but I've been hooked to the CSS guru Eric Meyer's reset. Let's go grab it from meyerweb.com/eric/tools/css/reset/:

So, scroll down a little bit to find the top of the reset, then just highlight all of the code until you get to the closing curly brace:

Switch over to Sublime, open your style sheet, and paste it in there:

Before we save this, let's open the index.html file for our site. One of the things you can do with Sublime is this: if you right-click on your HTML file, you can select Open in Browser and it will open your default browser:

In my case, it's Chrome. So this is what the site will look like without the reset:

As you can see in the next screenshot, all of the CSS we added actually removed the little bit of styling we had. This is why we call it a reset. All text looks the same—no margin, no padding, no nothing.

- 零基礎玩轉區塊鏈
- 深入淺出Windows API程序設計:編程基礎篇
- Java程序設計與計算思維
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- Responsive Web Design by Example
- Python Data Analysis Cookbook
- Node.js Design Patterns
- The Professional ScrumMaster’s Handbook
- OpenGL Data Visualization Cookbook
- RealSenseTM互動開發實戰
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- Qt5 C++ GUI Programming Cookbook
- Django 5企業級Web應用開發實戰(視頻教學版)
- 深入淺出 HTTPS:從原理到實戰
- Processing開發實戰