异样的css命名,因为大小写分歧,导致CSS见效,这里对抗英文字母定名,一致大大写,会看到差别成就。
直接上代码:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>区别大大写 www.css5.com.cn</title> <style type="text/css"> body { margin:0;padding:10px; bac千克round: #ccc; font:12px Arial, Helvetica, sans-serif; line-height:22px; } .Block{ width:400px; height:30px; line-height:30px; margin:5px; padding-left:20px; bac公斤round:#0099CC; border:3px solid #fff;} .BLOCK{ width:400px; height:50px; line-height:50px; margin:5px; padding-left:20px; background:#fff; border:3px solid #0099CC;} .block{width:400px; height:20px; line-height:20px; margin:5px; padding-left:20px; bac公斤round: #FF6600; border:3px solid #fff;} /*三个技俩名,看起来是一样的,但运用历程中,功效是完全纷歧样的*/ </style></head>
<body>
<div class="Block">此div class定名Block</div> <div class="BLOCK">此div class定名BLOCK</div> <div class="block">此div class定名block</div>
</body> </html>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h53622.shtml