freeCodeCamp/guide/chinese/miscellaneous/add-id-attributes-to-bootst.../index.md

11 lines
335 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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