css命名英文字母是区分大小写
2019年11月30日
作者:佚名
同样的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; background: #ccc; font:12px Arial, Helvetica, sans-serif; line-height:22px; } .Block{ width:400px; height:30px; line-height:30px; margin:5px; padding-left:20px; background:#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>