Files
freeCodeCamp/guide/chinese/miscellaneous/add-id-attributes-to-bootstrap-elements/index.md
2018-10-16 21:32:40 +05:30

11 lines
335 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Add Id Attributes to Bootstrap Elements
localeTitle: 将Id属性添加到Bootstrap元素
---
回想一下除了类属性之外您还可以为每个元素赋予一个id属性。
每个id对于特定元素应该是唯一的。请记住您可以为元素提供如下ID
```
<div class="well" id="center-well">
```