电话
13363039260
一样的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; bac千克round:#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>
以上代码,看到class实际都是运用对抗单词,只是大大写差别。