class特性
每個HTML元素都可以附帶一個class特性。有時候,你希望有一種方法可以指定多個元素并將這些元素和頁面上的其他元素區分出來,而不是單獨指定文檔中的某個元素。
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html><head><title>TODO supply a title</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body><div>TODO write content</div><p class="important">例如,你想把幾個包含重要信息的段落從其他段落中區分出來</p><p>或者你可能想把指向外站內頁面的鏈接區別開</p><p class="important admittance">為此,你可以使用class特性。</p></body> </html>?
轉載于:https://www.cnblogs.com/q2546/p/9394937.html
總結
- 上一篇: 外围功能电路控制 LET′S TRY“嵌
- 下一篇: appium更新到1.8.2,不能打开运