Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 css 样式表为 xhtml 文档中的两个段落制作两种不同的样式。我尝试了一切并到处搜索,但没有任何东西给我一个直截了当的答案。
样式.css:
p.style1 { ... } p.style2 { ... }
page.html:
<p class="style1">Paragraph with style1</p> <p class="style2">Paragraph with style2</p>
够直吗?:)