- Mastering CSS
- Rich Finelli
- 248字
- 2021-07-08 09:45:51
Changing CSS inside the inspector
On the right-hand side of the inspector, you will see all your styles for whatever element you have highlighted in the DOM. You can even click on any of those properties or values and change them. So if you click on 26px, next to font-size, you can increase it to whatever you want. This is updated immediately in the browser, which is very cool:

You can even uncheck certain properties and see that change immediately. So, as you can see in the next screenshot, if you click on the h2 element in the DOM and then uncheck color and margin bottom on the right-hand side, this change to the h2 element takes immediate effect. Simply recheck them to add them back:

If you click on the last element—in this case, margin-bottom and hit Tab, it will allow you to type in a new property and value. So add margin-left of -40px and see what it looks like; this moves this h2 over 40px to the left:

Now these aren't permanent changes. As soon as the browser is refreshed, these styles will disappear; however, you can copy this rule set and paste it into your code if you want to keep these changes we're experimenting with. It even tells us where this rule set is currently located in the style sheet-line 86. If you hover your mouse over that, it will tell you exactly where that file is in your website's folder:

- 大話PLC(輕松動漫版)
- Qt 5 and OpenCV 4 Computer Vision Projects
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- 嵌入式軟件系統測試:基于形式化方法的自動化測試解決方案
- Microsoft Application Virtualization Cookbook
- Software Testing using Visual Studio 2012
- Learning Laravel 4 Application Development
- Serverless架構
- Visual Basic程序設計上機實驗教程
- Internet of Things with ESP8266
- 一本書講透Java線程:原理與實踐
- Android開發三劍客:UML、模式與測試
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- SQL Server 2016 從入門到實戰(視頻教學版)
- Spring 5 Design Patterns