# 掌握 Webflow 的關鍵概念: 網站如何構成 -  CSS

### **What is CSS?**

![](/files/xgJKnF6gbblVUCzsZvSS)

![](/files/grhMYGRgY8vWaBMs3o8Z)

```javascript
# 1. CSS 的三種宣告方法

p { font-size: 120%; color: dimgray; }
p.smallcaps { font-variant: small-caps; }

<p class="smallcaps">Your paragraph here.</p>

<p style="color: #333;">Your paragraph here.</p>

```

![](/files/PuUVKlgGti68bR51EHCs)

```javascript
# 2. CSS Example to Change Character Case

p { font-size: 120%; color: dimgray; }

p.smallcaps { font-variant: small-caps; }

<p class="smallcaps">Your paragraph here.</p>

text-transform: uppercase; text-transform: lowercase; text-transform: capitalize;
```

![](/files/p3qRlindfrOV8RqGDKPN)

```html
<p class="important">Your important paragraph here.</p>
p.important { border-style: solid; border-width: 5px; border-color: purple; }

---

<p id="important">Your important paragraph here.</p>
p.important { border-style: solid; border-width: 5px; border-color: purple; }
```

![](/files/hVWwFdEiYEhN5701fwHc)

```javascript
# 3. Easy CSS to Change Link Colors

a:link { color: gray; } 
a:visited { color: green; } 
a:hover { color: purple; } 
a:active { color: teal; }

a:link, a:visited, a:hover, a:active { background-color: green; color: white; padding: 10px 25px; text-align: center; text-decoration: none; display: inline-block; }
```

![](/files/WgB2zHEBJ1oHjCW40tDd)

```javascript
# 4. Remove Link Underlines With This Sample CSS

a { text-decoration: none; }
a:hover { text-decoration: underline; }
```

![](/files/ldmIVkJ9whwvj3dCAc38)

```javascript
# Center-Align Elements With Basic CSS Code

.center { display: block; margin: auto; }
img { margin: auto; }
.centertext { text-align: center; }
<p class="centertext">This text will be centered.</p>
```

![](/files/loSwAPYb6sbImBHpJhgj)<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tenten.co/docs-webflow/webflow-101/01-html-he-css-jian-jie/zhang-wo-webflow-de-guan-jian-gai-nian-wang-zhan-ru-he-gou-cheng-css.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
