精通 CSS+DIV 网页样式与布局 38

    xiaoxiao2021-12-14  20

    color:green; /* 绿色 */ font-size:20px; /* 文字大小 */ } .three{ color:cyan; /* 青色 */ font-size:22px; /* 文字大小 */ } –> </style> </head> <body> <p class=”one”>class 选择器 1</p> <p class=”two”>class 选择器 2</p> <p class=”three”>class 选择器 3</p> <h3 class=”two”>h3 同样适用</h3> </body> </html> <html> <head> <title>ID 选择器</title> <style type=”text/css”> <!–

    one{

    font-weight:bold; /* 粗体 */ }

    two{

    font-size:30px; /* 字体大小 */ color:#009900; /* 颜色 */ } –>

    转载请注明原文地址: https://ju.6miu.com/read-968699.html

    最新回复(0)