div css(层叠样式表)入门
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <span style="font-size: 30px;color:blue">栏目一</span><br/> <span style="font-size: 10px;color: red;font-style: italic;">栏目一</span><br/> <span style="font-size: 40px;color: green;font-weight: bold;">栏目一</span><br/> <span style="font-size: 20px;color: pink;font-weight: lighter;">栏目一</span><br/> <span style="font-size: 30px;color: red;font-weight: lighter;">栏目一</span><br/> </body> </html>
没有使用css时候
css分内部css与外部css
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> .style2{ font-size: 20px; color: red; font-weight: bold; font-style: italic; text-decoration: underline; } </style> </head> <body> <span class="style2">栏目一</span><br/> <span class="style2">栏目一</span><br/> <span class="style2">栏目一</span><br/> <span class="style2">栏目一</span><br/> <span class="style2">栏目一</span><br/> </body> </html>