Inspect element attributes with Google Chrome
Although the Google Chrome developer tools show the properties of a selected element, it doesn't list the attributes.
开发者_运维百科Am I missing something?
Under properties, click the top expandable menu. It should have all the attributes.
Just right click on the element you want to inspect and choose "Inspect element". In the bottom panel select Elements tab. It will show the DOM element with the attribures in the form of HTML.
- Open Inspect Element by right clicking on the element or any other way you want.
- Find the element you want to add the attribute in.
- Right click on the attribute in Inspect Element. Click Add Attribute
精彩评论