火狐web開發清楚緩存_如何使用Firefox的Web開發工具

火狐web開發清楚緩存

火狐web開發清楚緩存

Firefox’s Web Developer menu contains tools for inspecting pages, executing arbitrary JavaScript code, and viewing HTTP requests and other messages. Firefox 10 added an all-new Inspector tool and updated Scratchpad.

Firefox的Web Developer菜單包含用于檢查頁面,執行任意JavaScript代碼以及查看HTTP請求和其他消息的工具。 Firefox 10添加了全新的Inspector工具并更新了Scratchpad。

Firefox’s new web developer features, in combination with awesome web-developer add-ons like Firebug and the Web Developer Toolbar, make Firefox an ideal browser for web developers. All tools are available under Web Developer in Firefox’s menu.

Firefox的新Web開發人員功能,再加上Firebug和Web Developer Toolbar等出色的Web開發人員附加組件,使Firefox成為Web開發人員的理想瀏覽器。 在Firefox菜單中的Web Developer下可以使用所有工具。

頁面檢查器 (Page Inspector)

Inspect a specific element by right-clicking it and selecting Inspect (or pressing Q). You can also launch the Inspector from the Web Developer menu.

通過右鍵單擊特定元素并選擇“檢查” (或按Q )來檢查該元素。 您也可以從Web Developer菜單啟動Inspector

You’ll see a toolbar at the bottom of the screen, which you can use to control the inspector. Your selected element will be highlighted and other elements on the page will be dimmed.

您將在屏幕底部看到一個工具欄,可用于控制檢查器。 您選擇的元素將突出顯示,頁面上的其他元素將變灰。

If you want to choose a new element, click the Inspect button on the toolbar, hover your mouse over the page and click your element. Firefox highlights the element under your cursor.

如果要選擇新元素,請單擊工具欄上的“檢查”按鈕,將鼠標懸停在頁面上,然后單擊您的元素。 Firefox突出顯示光標下方的元素。

You can navigate between parent and child elements by clicking the breadcrumbs on the toolbar.

您可以通過單擊工具欄上的面包屑在父元素和子元素之間導航。

HTML檢查器 (HTML Inspector)

Click the HTML button to view the HTML code of the currently selected element.

單擊HTML按鈕以查看當前所選元素HTML代碼。

The HTML inspector allows you to expand and collapse the HTML tags, making it easy to visualize at a glance. If you want to see the page’s HTML in a flat file, you can select View Page Source from the Web Developer menu.

HTML檢查器使您能夠展開和折疊HTML標簽,從而一目了然。 如果要在平面文件中查看頁面HTML,可以從Web Developer菜單中選擇View Page Source

CSS檢查器 (CSS Inspector)

Click the Style button to see the CSS rules applied to the selected element.

單擊樣式按鈕以查看應用于所選元素CSS規則。

There’s also a CSS properties panel — switch between the two by clicking the Rules and Properties buttons. To help you find specific properties, the properties panel includes a search box.

還有一個CSS屬性面板-通過單擊“規則”和“屬性”按鈕在兩者之間切換。 為了幫助您找到特定的屬性,屬性面板包括一個搜索框。

You can edit the element’s CSS on the fly from the Rules panel. Uncheck any of the check boxes to deactivate a rule, click the text to change a rule, or add your own rules to the element at the top of the pane. Here, I’ve added the font-weight: bold; CSS rule, making the element’s text bold.

您可以從“規則”面板中即時編輯元素CSS。 取消選中任何復選框以停用規則,單擊文本以更改規則,或將自己的規則添加到窗格頂部的元素。 在這里,我添加了font-weight:粗體; CSS規則,使元素的文本變為粗體。

JavaScript便簽本 (JavaScript Scratchpad)

The Scratchpad also saw an update with Firefox 10, and now contains syntax highlighting. You can type in JavaScript code to run on the current page.

Scratchpad還看到了Firefox 10的更新,現在包含語法高亮顯示。 您可以鍵入JavaScript代碼以在當前頁面上運行。

Once you have, click the Execute menu and select Run. The code runs in the current tab.

完成后,單擊“執行”菜單,然后選擇“運行”。 該代碼在當前選項卡中運行。

網絡控制臺 (Web Console)

The Web Console replaces the old Error Console, which has been deprecated and will be removed in a future version of Firefox.

Web控制臺取代了舊的錯誤控制臺,該控制臺已不建議使用,并將在以后的Firefox版本中刪除。

The console displays four different types of messages, which you can toggle the visibility of — network requests, CSS error messages, JavaScript error messages and web developer messages.

控制臺顯示四種不同類型的消息,您可以切換它們的可見性-網絡請求,CSS錯誤消息,JavaScript錯誤消息和Web開發人員消息。

What’s a web developer message? It’s a message printed to the window.console object. For example, we could run the window.console.log(“Hello World”); JavaScript code in the Scratchpad to print a developer message to the console. Web developers can integrate these messages into their JavaScript code to help with debugging.

什么是Web開發人員消息? 這是一條打印到window.console對象的消息。 例如,我們可以運行window.console.log(“ Hello World”); Scratchpad中JavaScript代碼可將開發人員消息打印到控制臺。 Web開發人員可以將這些消息集成到他們JavaScript代碼中,以幫助進行調試。

Refresh the page and you’ll see the generated network requests and other messages.

刷新頁面,您將看到生成的網絡請求和其他消息。

Use the search box to filter the messages; click a request if you want to see more details.

使用搜索框過濾郵件; 如果您想查看更多詳細信息,請單擊一個請求。

As of Firefox 10, the Web Console can work in tandem with the Page Inspector. The $0 variable represents the currently selected object in the inspector. So, for example, if you wanted to hide the currently selected object, you could run $0.style.display=”none” in the console.

從Firefox 10開始,Web控制臺可以與Page Inspector協同工作。 $ 0變量表示檢查器中當前選擇的對象。 因此,例如,如果要隱藏當前選擇的對象,則可以在控制臺中運行$ 0.style.display =” none”

If you’re interested in learning more about using the console and its built-in functions, check out the Web Console page on Mozilla’s Developer Network website.

如果您想了解更多有關使用控制臺及其內置功能的信息,請查看Mozilla開發人員網絡網站上的Web控制臺頁面。

獲取更多工具 (Get More Tools)

The Get More Tools option takes you to the Web Developer’s Toolbox add-on collection on the Mozilla Add-Ons website. It contains some of the best add-ons for web developers, including Firebug and the Web Developer Toolbar.

獲取更多工具”選項將帶您進入Mozilla附加組件網站上的Web開發人員工具箱附加組件集合。 它包含一些針對Web開發人員的最佳插件,包括Firebug和Web Developer工具欄。



If you’ve been using Firefox for a few years, you may remember the DOM Inspector. Firefox’s integrated developer tools have come a long way since then.

如果您已經使用Firefox幾年了,您可能還記得DOM Inspector。 從那時起,Firefox的集成開發人員工具已經走了很長一段路。

翻譯自: https://www.howtogeek.com/105320/how-to-use-firefoxs-web-developer-tools/

火狐web開發清楚緩存

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/279114.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279114.shtml
英文地址,請注明出處:http://en.pswp.cn/news/279114.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Leetcode400Nth Digit第N個數字

在無限的整數序列 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...中找到第 n 個數字。 注意: n 是正數且在32為整形范圍內 ( n < 231)。 示例 1: 輸入: 3 輸出: 3 示例 2: 輸入: 11 輸出: 0 說明: 第11個數字在序列 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... 里是0&#xff0c;它是…

Java基類共同屬性設置_多選擇基類的訪問屬性-Java初學筆記

多選擇基類的訪問屬性你現在知道在定義類的訪間屬性時可用的選擇項&#xff0c;你希望使用這些類定義子類。你知道在類繼承上這些屬性所具有的效果&#xff0c;但是你如何決定到底應該使用哪一個呢?這里沒有死板和現成的規則&#xff0c;你選擇的訪問屬性取決于在將來你想用類…

IT:如何在Windows Server 2008 R2上安裝Hyper-V虛擬化

Windows Server 2008 R2 and later releases of the product ship with a virtualization platform called Hyper-V, which works quite well since it’s built into Windows. Today we’re going to show you how to install it. Windows Server 2008 R2和更高版本的產品附帶…

FineReport單行與數據庫交互的方法

1. 問題描述 我們在做一張報表填報的時候經常會遇到需要在一行進行添加動作&#xff0c;將該行數據直接與數據庫交互&#xff0c;執行存儲過程過程。我們可以通過每一行增加帆軟“插入”按鈕實現插入動作&#xff0c;并且在控件事件中增加和數據庫的交互&#xff0c;但當事件…

java cas volatile_每日一個知識點:Volatile 和 CAS 的弊端之總線風暴

每日一個知識點系列的目的是針對某一個知識點進行概括性總結&#xff0c;可在一分鐘內完成知識點的閱讀理解&#xff0c;此處不涉及詳細的原理性解讀。一、什么是總線風暴總線風暴&#xff0c;聽著真是一個帥氣的詞語&#xff0c;但如果發生在你的系統上那就不是很美麗了&#…

SqlServer之代碼塊相關

轉載必需注明出處:http://www.ncloud.hk/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/sqlserver-codeblock/ 一、go語句 Go語句是SqlServer中用來表示當前代碼塊結束提交并確認結果的語句。 Go語句不能和其他Sql命令卸載同一行上&#xff01; 定義的局部變量作用域局限在定義它的代碼…

010 使用list和tuple

list Python內置的一種數據類型是列表&#xff1a;list。list是一種有序的集合&#xff0c;可以隨時添加和刪除其中的元素。 比如&#xff0c;列出班里所有同學的名字&#xff0c;就可以用一個list表示&#xff1a; >>> classmates [Michael, Bob, Tracy] >>&g…

IT:如何使用Server 2008 R2上的遠程桌面服務設置自己的終端服務器

In today’s IT learning article, we are going to take a look at installing Terminal Services, otherwise known as Remote Desktop Services, on a Server 2008 R2 machine. 在今天的IT學習文章中&#xff0c;我們將介紹在Server 2008 R2計算機上安裝終端服務(也稱為遠程…

java 中的chartdata_獲取Helm Charts中的文件夾列表

獲得了位于templates文件夾之外的配置文件列表&#xff0c;我們將其輸入到如下的helm圖表中&#xff1a;├── configs│ ├── AllEnvironments│ │ ├── Infrastructure│ │ └── Services│ │ ├── ConfigFile1│ │ ├── ConfigFile2│ ├…

Win10 jdk的安裝以及環境變量的配置,及需要注意的坑

此篇文章獻給自己&#xff0c;希望下次長點記性 最近本人終于有時間開始學習appium&#xff0c;并且開始在電腦上配置環境&#xff0c;第一步就是在我那剛裝的Win10 系統上安裝jdk&#xff0c;過程并不順利&#xff0c;由于之前都是用的win7&#xff0c;幾乎都是一路的下一步&a…

java部分服務出現異常_Java web service 異常

1.org/apache/commons/discovery/tools/DiscoverSingletonException in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton缺少&#xff1a;commons-logging和commons-discovery2.ojava.lang.NoClassDefFoundErr…

Jenkins配置Findbugs做源代碼安全掃描

2019獨角獸企業重金招聘Python工程師標準>>> 此內容目標閱讀用戶&#xff1a;運維人員 配置步驟如下&#xff1a; Jenkins安裝Findbugs插件 Jenkins系統管理 → 管理插件 → (可選插件)找到Findbugs及其依賴插件全部安裝成功&#xff0c;Jenkins重啟&#xff0c;即可…

如何從USB運行Windows 8 Developer Preview

Running Windows 8 from a USB should not be confused with installing Windows on a USB drive–in this case, instead of installing it on the drive, we’re just running it straight from the portable drive. Here’s how to do it. 從USB運行Windows 8不應與在USB驅動…

PAT-乙級-1042 字符統計

請編寫程序&#xff0c;找出一段給定文字中出現最頻繁的那個英文字母。 輸入格式&#xff1a; 輸入在一行中給出一個長度不超過 1000 的字符串。字符串由 ASCII 碼表中任意可見字符及空格組成&#xff0c;至少包含 1 個英文字母&#xff0c;以回車結束&#xff08;回車不算在內…

acm教程 java版_[轉]ACM之java速成

這里指的java速成&#xff0c;只限于java語法&#xff0c;包括輸入輸出&#xff0c;運算處理&#xff0c;字符串和高精度的處理&#xff0c;進制之間的轉換等&#xff0c;能解決OJ上的一些高精度題目。1. 輸入&#xff1a;格式為&#xff1a;Scanner cin new Scanner(newBuffe…

配置SSH非管理員用戶登錄

以root身份登進系統后&#xff0c;增加一個非root帳戶&#xff0c;名稱為:systemadmin&#xff0c;密碼按您的需求設置一個即可。接下來我們要禁止root直接登陸。 [rootmail ~]# useradd systemadmin [rootmail ~]# passwd systemadmin [rootmail ~]# vim /etc/ssh/sshd_conf…

火狐查cookie_Firefox 65默認會阻止跟蹤Cookie

火狐查cookieMozilla today released Firefox 63, which includes an experimental option to block third-party tracking cookies, protecting against cross-site tracking. You can test this out today, but Mozilla wants to enable it for everyone by default in Firef…

chromebook刷機_如何將iTunes音樂移至Chromebook

chromebook刷機If you switch between platforms a lot, you know it’s a hassle to move your stuff around. Fortunately, music files don’t have any sort of DRM tying them to a specific platform the way that movies do, so you can copy and paste your library ar…

機房管理系列之殺毒服務器維護

對于企業安全管理方面&#xff0c;“防患于未然”&#xff0c;事前的預防遠遠大于事故處理&#xff0c;在企業內部保障機房服務器安全運行尤為重要&#xff0c;如何確保企業的安全&#xff1f;我們接下來講的就是對Symantec殺毒服務器的管理。首先是掃描策略的應用。什么時間升…

php v9 上傳_phpcms v9 表單添加文件上傳字段

phpcms v9 表單添加文件上傳字段1.打開目錄 ./phpcms/modules/content/fields/ ;把 文件夾downfile&#xff0c;拷貝到目錄./phpcms/modules/formguide/fields/里面。2.打開文件 ./phpcms/modules/formguide/fields/fields.inc.php ,在數組$fields添加值 ‘downfile’>’文件…