入职已经一个月了,自此后,就好久没有写过博客了,在此先跟关注我的博友们说声抱歉。今天,在公司的一个培训作业的驱动以及伟哥那句“再不写博客就开除你”的监督下,我终于重拾旧爱,再次登录博客园,继续与大家分享我的学习成果。
好了,直入主题,大家都知道,CSS的中文名叫做层叠样式表,而CSS在控制样式的时候,有三种引入方式,分别是:
1>外部样式表 : 将样式规则直接写在*.css文件中,然后再*.html页面中通过<link>标签引入的方式
2>内部样式表 :(位于 <head> 标签内部)
3>内联样式 :(在 HTML 元素内部)
按照W3School网站(点这里直达)的说法,当同一个 HTML 元素被不止一个样式定义时,它们是有优先级之分的,如下,将优先级从小到大排列出来,其中4的优先级最高:
1.浏览器缺省设置
2.外部样式表
3.内部样式表(位于 <head> 标签内部)
4.内联样式(在 HTML 元素内部)
对于这个结论,相信大家一定有很多疑问,而网上很多都是直接对官网的内容进行复制然后粘贴发布就算了,让我们非常厌倦和烦恼,所以,在这里让我们一起来验证对比下。
注意:本次验证主要针对后面3个优先级,关于浏览器缺省设置这个,相信大家都知道,他一定是最低的,我们在此就不过多的举例验证了。
一、验证环境的描述
浏览器:FireFox 22.0
语言:HTML 4.01/CSS
开发工具:Aptana Studio 3
二、使用三种方式直接对标签进行元素定义样式
1>首先,我们先直接使用外部样式表来定义div标签的样式:
xiaoxuetu.css
div {
color:blue
}
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" /> <link rel="stylesheet" href="css/xiaoxuetu.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
</head> <body>
<div>外部样式表</div>
</body>
</html>
显示效果: aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAATQAAABgCAIAAAAcixmdAAAgAElEQVR4nO2c+V9TV/7/798w3+Lg0tp1pv1UHEQ7Vm2/nX6+nZnPd2a+1anWUetuixuCG6uAuOCGCIgEFAOyhyU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azljanZzlAA3i29doq8GAgg/Q8hO5pUf1K5e/y9L8Meh4NxAZeWy3Z9RJzQLe1qF5F/XhzelYIJJUvS7u99LW4Pe8229cwUKFa/vJ5tbotj173t2DAl7uv7bFnR4GkDaTyz/IZFRWql6hAn9YGaM5AdrP+t8de0/o/Goi7/PSFCtXyVEBXa+BmWHInDHr4xP+e1uvKFkjE19EfseyjQvVS9MuZ09fa9dNXTtCv5bx+cF2yC1SoXrp+5j9C8L9yBu7DJc3puagGskoHmB8VquWg5/ie038QPvS8D1Sfy7H+H+G4PWHyunN2y4YK1bLVc3yVsmTc89DPa07/eeAKvtZJP4ZHhWoZaomvUp730M+V7acYxqs5UQei+tUJvWZRoVqmQs2JCtUyFWpOVKiWqVBzokK1TIWaExWqZSrUnKhQLVOh5kSFapnq/wPENPQHMGAEgwAAAABJRU5ErkJggg==" alt="" />
下面我们开始验证吧。
2>外部样式表 VS 内部样式表(先定义内部样式表,再引入外部样式表定义文件) 加入内部样式表,也就是说,直接在<head>标签中定义样式规则,这个时候我们修改一下xiaoxuetu.html中的代码:
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<style type="text/css" media="screen">
div {
color: green
}
</style>
<link rel="stylesheet" href="css/xiaoxuetu.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
</head> <body>
<div>外部样式表(蓝色) VS 内部样式表(绿色)</div>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAABzCAIAAABfDP0RAAAgAElEQVR4nO2d+V9UR7r/z99wv8FxyWSZZGaSG3FwyRiZyc3kfjMz93VnvtEbjVGCaxLcBVRAURDXyCaIgsjWNPu+NXuv9EIv9L4ATe97s68yEcjt7w+n+3DoPt00aiKa+rzer7yq6zz11FOnqp46p9sopLKOHQjeMCfNnpNkzokznojuPRG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oX6i04NbgvlGU8qzCboLla0Iv0xXvaU87E6ffToGa0/p+LPlhoc3g/qZbtbdq79dPXSza+PYF5U6l8NWj5Y35vBd9b3vdowFw2mW99X/T8rnvpUWalWtFifoutlh7PSkfqTJhyv4vx6Dsefpf5Tz+9qkF/B+j9V/h9Enpf8v9ErSvyYvfto9XRn1Iri8SdOfyxXtMF8GPi4D34ejy/1/Hqr8ZYvlo3HnzhXv36+1OBtNT/7qeLwuSA8F9+y+8qHfx/Ho28Py/ay0nXjbVz+O/R9H1aaGl7q+fVms6JB+bZ5ufKCw5/UsKL74vtUWdEp7TskzwPHnxPMf//ealZVanhGh88e5Cszv0in3vp6isl6xVPDSucV8vKsuNIU7mPyPE8Jt1bIf31PsA8/ngH81KnhKdYNZqfL3iLfHpa1efXm10cO8rO8bBd+2q82+QrZ9wz5c+n5Lh3ffhADbxt12bPCWyv/8fTsj/2LWjf+HK2+j75XYH59R+h7XKt8fp9RXqNe6WQv081zWjpP15efp+gvTf7sw2d39fLO7y98zfyyRw8EBORFIDUAAQFhCKQGICAgDIHUAAQEhCGQGoCAgDAEUgMQEBCGQGoAAgLCEEgNQEBAGAKpAQgICEMgNQABAWEIpAYgICAMgdQABASEIZAagICAMARSAxAQEIZAagACAsIQSA1AQEAYAqkBCAgIQyA1AAEBYQikBiAgIAyB1AAEBIQhkBqAgIAwBFIDEBAQhkBqAAICwhBIDUBAQBgCqQEICAhDIDUAAQFh6P8DNvNwCmipoVYAAAAASUVORK5CYII=" alt="" />
得出优先级结果:外部样式表 > 内部样式表
3>外部样式表 VS 内部样式表(先引入外部样式表定义文件,再定义内部样式表)这步很简单,其实就是直接将link标签剪切移动到上面到head标签中定义内部样式表的前面:
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/xiaoxuetu.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
<style type="text/css" media="screen">
div {
color: green;
}
</style> </head> <body>
<div>外部样式表(蓝色) VS 内部样式表(绿色)</div>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAABhCAIAAAAREl6BAAAgAElEQVR4nO2d+V9UR7r/z99wv8FBzWSZZGaSG3FwyRiZyc3kfjMz93VnvtEbjVGCaxLcBVQWURDXyCaIgsjWNPveQLP3vu97N9D0vjf7KhOB3P7+cLoPh97oVhPRnM/r/ZpXdZ2nnnqqTtVT53QbBlBZJw5GbFyQFi5I8hfEeU9E956Icn/x3FsQ5y1I8hekhVERr/dbHzcLR5oEo02C0SbBSAPPXsexVjPNlXRDBc2AphrQVEM5VV9O1aMoehRZhyJrUWRtGVFbStSUEjQlBHUJQV2MVxXh1cUEDUgRQVtE0BYRtcVEXRFJV0zSF5MNJWRDCdlYQjGVUEylVHMp1VJCtZbQLKU0awnNWkqzldBsxTRbEc1W5CzYH9Hsj6j2h1T7Q6q9gGoroNrzKfYHFNt9iu0+xZZHseWBBbItj2S7T7beJ1vzSNY8kiWPaMkjWu4RLLl4sxs5eHMOVMaZcvpMd/uM2b2GrB5DRo8+o0ef3q2/063/vkv7fZfu+y7drU7dTU86tDewK7iO1V5r17hQu9Asg9VeB407nNwE6VzmVof2Vof2VqcuYLQ3OzQ3sZob7eprbUPXWpVpmMGrLQOpLf2pTf0pTQonDbIrLi43SC/XSy/XSy/XSS/XSZLrxMm1IKLkWtGlGlFStTCpWphULXCnBqrkJ1bzE6t4iZUuKrgJFdyECk4CmhOPZsej2RfR7IvlrPMo1nkUKw7FikOxY1HsWBQrBsU6tww7BsWOQbFjy9lx5eyL5Zx4NCcBzU5Cs5MrOFcqOSmV3KtVvLRq/vUa/o0awc1a4a060fcNku+bpHda5OmY/ozWgUzsUFanOrtbe7dHn9NnzMWZcvHmewTLPaLlHtGSR7LkkayePKDaALVl7GDEhnniufm+6Mfdhx93HXzc+fUvna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7v6uHQW3eqBKP/ZeP3oteJ48/s+lwAkwvKcwe4pJCLD3p94AvkIKJDUEW/NK3t9Vgw9wYp/X/V0jCmL1uE3cqk0823ptFXhlIEF6Xgp2kfmvXDU1BLjQgx2IH7OfMzX46u7lvb/B3pef4f6uEQWR59zWhP8p9jVZXlut2vUqY3iuD5yBp4bAD5bncux4NfNVDtbPqjWv9v3133bViXq+93eN6OlTg6dBIK58JRS3j3623KrLMfARBW7ja+wBLoLnvnT8zGeAHny1fTqHr8z99RWkW6i/6NTgtlCe8aTy2gTeRVArMhDjVU85P6vTT4+e0QZyKv5sqcHh+6AOPMhf2v31E8yLSv1rQYFm2QBTg6+7surS8dqp/5ACNF61r6C6DlBBLdan6HrV4QQ70kDShONVvL+ewwlkqf/U93ct6JmOl8AtPafY81LgEx1U4vfau59WT3dGBRVPIHEGYhnUBvNj4GceAjweX+r766vGV75YNZ5A4lz7+vlSg6/V/OynisPvgvBcfKvuKz/+/RyP/j2s2kuw68bXuAJ36H8egk0NL/X99WUT1KD827xcecERSGoIal78nypBndL+Q/I8cAI5wQL376tmTaWGZ3T47EG+MvcX6tRXX09xs17x1BDsfQV8PCsGm8L93DzPU8KtFfS//m+wHz+eAfzUqeEp1o3XTledomcJ0rOLV+D++slBAZZX7SJA+7WmoJOrn3rPS8936fj3Axn42qirnhW+WgWOp+dA7F/UugnkaPV/9L0C99d/hP7Htcbv7zMquDu66qXn5e1ZZtPXcfrUDl9VBbIPn93Vy3t/f+Fr5hc9eESIEPkSkhoQIULkRUhqQIQIkRchqQERIkRehKQGRIgQeRGSGhAhQuRFSGpAhAiRFyGpAREiRF70/wGxweflziRoCwAAAABJRU5ErkJggg==" alt="" />
得出优先级结果:内部样式表 > 外部样式表
从<2>和<3>这两部测试我们可以知道,在直接对标签的样式进行定义时,外部样式表和内部样式表的优先与他们的引入顺序有关,嘿嘿,是不是很庆幸没有完全相信官网所说的咧……
4>外部样式表 VS 内联样式 直接在div标签中定义样式,这个时候我们修改下xiaoxuetu.html的代码:
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/xiaoxuetu.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
</head> <body>
<div style="color:red;">外部样式表(蓝色) VS 内联样式(红色)</div>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV0AAABkCAIAAACq6HQxAAAgAElEQVR4nO2d938TV7r/52+435ilZFM22ZIbzJqSDbCbm81udvfezV4gtFBMgiEx3RXbgAvGDgRjjLHBxgX33iSrWMVykWX1anXJqpbce4MNtnPn+8NI4/GoWKZD5vN6v/I6OvOc5zxnzjnPGY0IAF3G/sNb18wpcubkWXNdmY9kGY9kt3/2ZMx1Zc7Js+YUOYe2rhEZBrIpsiyKLKtJltUku0MWZxJF6Xh+WgPvZj03tY6TWse5Uce+UctOqWWn1LJ/qOn8oabzhxrWD1Wsa1Wsq5UdVys7kiuYSRXtyRXM5EpmckVHUnlHUkVHUkVHUmVHciXLQVVnchXbCSe5ip1czUmq4iZVc5KqOElVnCtVnMRKdmIV+3IVJ7GKe7mKl1DNi6/ix1YLL9UIL9WILtSIY2rEUQ4k0dWS6GpxTJUopkoYU8m/UMGLKefElLKjSzqjSlhRxR3RxR1RRYucRxBZxDxfxIwsao8oag8vbAsvbAsvaA273xpyvyUkv+VMLuN0LuP0Pcape4xT9+insukns+knsunBEFkOvnPi+Hh3eeC2wVkObyeW5R79xD36SSeuBsFZtOA7tO/uUL7NbPo2o+l4BvlYOulYOjEI5hYh6BYhKK0xKK3xaBrewU0039zEf3MTB/F1asPXqfUeSan/OqVuKbVHYK7XBjo5fL3uUEr9gZSGr1Lq919v2He9Yc913JfXcXuu4/am4Pal4Pen4A/cwAfexH+Thjt+C/9tGu7ErYZTtxrOpDeE3MaFZODCMhrD7zRG3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SwvYMKECS0sL2DChAktLC9gwoQJLSwvYMKECa3/D6ee5JAAzU32AAAAAElFTkSuQmCC" alt="" />
得出优先级结果:内联样式 > 外部样式表
5>内联样式 VS 内部样式表,这个时候我们修改下xiaoxuetu.html代码:
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<style type="text/css" media="screen">
div {
color: green
}
</style>
</head> <body>
<div style="color:red;">内部样式表(绿色) VS 内联样式(红色)</div>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUkAAABvCAIAAADuaqVgAAAgAElEQVR4nO2d919bR773z99wn+DFZVM22d3kxngxdtYxu7nZ3Ce7e19394l9Y8exCa5JcFwB2xRjg+WWmGYwNhhTLESvooiOGpIACaFOE+pd9Go2lNzz/HCkw0HlIIxbyHxe7x+GOd/5zsyZ+Zw5krJeSGEeO+y/eV6aPi9JnRenzInuzYmSf/HcmxenzEtS56Xpgf5bes1PKoRD5YLhcsFwuWColG8t5pkL2o15HF0uW0di6UgsXQ5Lm8PSElu1RKaGyFQTmerHdHU2XZVNU2XRlFk0ZSZVkUFVZtJUCBk0dQZNnUFXZ9I1GQxNJkObydRlMXVZTH1WqyGr1ZDNMmazTFkscxbblM02Z7HN2WxLFtuSybZksC0ZtoL1Edv6iGV9yLI+ZFnTWJY0ljW11fqg1XK/1XK/1ZLSaklBCkxLCsNyn2m+zzSnMMwpDFMK3ZRCN92jmZKpRgeSqMYktNxiSGo23G3WJzbpEhp1cY3auEZtbIP2ToP2h3r1D/WaH+o1t+s0t5ypVd+kLOMGRX29RmVHaUe1BEV9AwmutXELoW6J27Xq27Xq23Uaj1HfqlXdoqhu1iivVw9cr5ITKvuvkftiyL0x5b3R5T02SmVX7VwplV4pkV4pkV4pll4plkQVi6OKEERRRaLLhaLIAmFkgTCyQOBIIV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ri3P1FVyvlyGP75on+wB2td44qVyuusu0+Fc9ucU4fa2Y3GE6K25951b4T5NVTQQb+RSb2F3MqnzuoZ1ezPp6uAPxUz3v9XoZ8uyueb5ynm8R50ue39lVPapd9o7TyvPu3Bl+xfF4Mk5PIld7oLkL8HB9HVYKfzAvbH3XGLxiExz97L2Nfzs897a7bGt/rsNutqBD1w4Bz+TQW9Wk8GNWu1FWPJQ89Lbn64t/GK7KNs9wfVfM5knkC1ivF661PfidY/Af3p4v84pr77zJPHlH8Dy/u07d9fUUC792b68x4aoG6XL6OOWnqMRe9XB98btY8fHn4XhcxvwSve3ydWu1hyT+anly1OBb0SEAZwA4m8zD8opdeBiP0xytWfEW4WfwMOY5eXtV6+suoScZPK93F/PKGxtek7dd3mj8c9vzXp56DVyuK/6eWLEvnBHiz2tFcPK/AD3F+jo09OQIfQHriz+qFe//imGvyHqtUms7tz2f5LPy9tP15eE5tvaOfl566vXFf67hP+497PopRgW0XOA2AQGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtTwFvAwGtT/1/RxFDhosOHv8AAAAASUVORK5CYII=" alt="" />
得出优先级结果:内联样式 > 内部样式表
从上面步骤<2>到<5>的对比中我们可以知道:内联样式的优先级是最大的,而内部样式表和外部样式表的优先级得看他们的引入和定义顺序,如果先用内部样式表定义了样式,然后再引入通过外部样式表定义的样式,你们外部样式表的样式将会覆盖内部样式表定义的样式,反之亦是一样。
当然,这个情况只是用id或者class选择的时候,也是一样的。如果对一个标签的样式定义既有class也有id选择器的时候,同时又包含了三种样式定义方式的,就得先看完下面的优先级测试了。
三、判断用id、class以及标签选择器定义样式的优先级
本次测试中,为了减少其他因素的影响,只采用内部样式表来定义样式,同时分别使用了ID选择器和Class选择器来选择使用样式的标签。
1>三种方式并存的时候
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<style type="text/css" media="screen">
fieldset {
width: 50%
} div {
color: red;
} #idtest {
color: green;
} .classtest {
color: blue;
}
</style>
</head> <body>
<fieldset>
<legend>单一显示效果</legend>
<div id="idtest">只使用ID(绿色)</div>
<div class="classtest">只使用Class(蓝色)</div>
</fieldset>
<p> </p>
<fieldset>
<legend>先引入ID定义的样式再引入Class定义的样式</legend>
<div id="idtest" class="classtest">小学徒</div>
</fieldset>
<p> </p>
<fieldset>
<legend>先引入Class定义的样式再引入ID定义的样式</legend>
<div id="idtest" class="classtest">小学徒</div>
</fieldset>
</body>
</html>
显示效果 :aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA1MAAAFnCAIAAADMroRZAAAgAElEQVR4nOzdd3gTd6Iv/Nl79z7vved9n3uf59wlvW45u3s2JqYklGRvds/u2XPuKQmbAAuEBAKYFIpNMTbFxkAgYGOb5gYY4957r3LvTdWWZctF7r0bt8z7x0ijUR8Jgy3r+3m+Tx55NPOb30gj9H1GskP0ji/s+/D1OZ7vHNdrrv7ObN3t2bpbFp/bc/V35rheczzfLz98vX14rrBlqrBlqlA6XSid5kgm85rGcxqGMwSDGfzBdP5gOm8gnTeQpkgql0p/KrcvhduXXN+XXN+XVNeXVNeXVN+XVN+XxO1P4vYncweSuAPJ3IEU3lAqbyiFN5wqGEkTjKQLx9JE42nC8XTReLpoIl00kdE4kd4gT1rDRBrjRppoIk00kcpMw0RKw0QKY0kKHSGV8SQ6gvEk/lgSfyyRP5bIG03gjybwx6gk8scSBeOJgvFEwUSiYCJekTj+RCx/IpY3EcObiOGOR3PHo+rHo+rHourHo+rHo7l0JqK4E9EaidJIJHc8kjseWU9lLKJ+LLKOymhk3WhE7UhE7UhEzUh4zXB4zXB4zVC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bypvIrbYnXW+kttQcAF1J+a5lWfs1fy9L7077b7coPAO5G+a3lfeVX2vj9VvOnd3efKSo/ALiQ8lvLnPILPuH7fnTX+7O92zF3v+eveZ0AwFzKby0Tyi/+eK/+zK9+lqdnfgBwP8pvLXf5Tc5d5ffz2/6UHwBcSPmtZeHye1a/OxAAeAPlt5b55df7KC6+/+6efp8fAFxI+a3llGd+Zzzwe3rCBwD3o/zWctZXewGADKTCWpQfADBOKqxF+QEA46TCWpQfADBOKqxF+QEA46TCWpQfADBOKqxF+QEA46TCWpQfADBOKqxF+QEA46TCWpQfADBOKqxF+QEA46TCWpQfADBOKqxF+QEA46TCWpQfADBOKqylXX4fHx9/AQAKlN9CGuX3+fn5BQBQ9Z5q4bhG+QEA8GsoPwCALP4BUcWgg1DAeXAAAAAASUVORK5CYII=" alt="" />
得出优先级结果 id选择器 > class选择器 > 标签选择器
2>当只有两个class或者两个id的时候
xiaoxuetu.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<style type="text/css" media="screen">
#idtest {
color: green;
} #idtest2 {
color: YellowGreen;
} .classtest {
color: blue;
} .classtest2 {
color: yellow;
}
</style>
</head> <body>
<fieldset>
<legend>两个class的时候</legend>
<div class="classtest2" class="classtest">classtest2(黄色)先classtest(蓝色)后</div>
<div class="classtest" class="classtest2">classtest(蓝色)先classtest2(黄色)后</div>
</fieldset>
<p> </p> <fieldset>
<legend>两个id的时候</legend>
<div id="idtest" id="idtest2">idtest(绿色)先idtest2(黄绿色)后</div>
<div id="idtest2" id="idtest">idtest2(黄绿色)先idtes(绿色)t后</div>
</fieldset>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdUAAADJCAIAAAD6uD/0AAAPCElEQVR4nO3c2xHjuBGFYcXkCB3HRjDlGJyCyzVBTAz7KD+MzaUJoP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UX5qyx1Y/l1bI31ZNebvn5AGOHrFt4OThk3o1ECF1fQn7/uZ/fkD7e+dTXempi/gzl7OK7v03PnRR+HaPnuqRkvDyyyMH+/J37Q3T1X6M5DmW7VJ0YO9m3WlG8OZcwT56XV2/PHbWJ5YJG19x+i2dFXrduQ0q69vQr9Cv79XEz20IWI1+I6Z14Sx804qDRBQOMcr87fKYt8epdaTYgFFKfNi1v/0nHrHmTgHJ356+bUoYD9k9M9rtSzP9E9Uh5vPW8VcIN7PEeUbVprfFqVL5oX46LOHze7k0YlwMmG9r/KerPLtwr0LUKxFberoRWrJ0LHWa23oiNgn75uXnLHrWOQgTNNzt+O9dnax4Xatd9S9oPiTvCP/92jrFYe2r2OXNrgN9A585I+bnbhUP3ACvn5a1TeWhLR8Fqx/z2s4bJM30q+Tv4alevzkjtubv7qpwArXDd/Q/W4Vbmn6Ol2KNZazEolevSEQiprXsQTTxs3e9LJX6RbeP+33CLpuTCYF+Kq7viRW/ZQ7HOrQvGU0IBkzYvRdMq4kb+4uNH//qH1O3T/M7P6VrUqsf6yHiVAlVVqx7R7SnQTLZYP5WPuvFQ7417vonH71j4n9onkL870ov//w1fbr+nLcssyozn3YdRvv6VEYRZlj7l63Ixe2a3oFQKD3pW/B8qOuK+GKR4cB1e4Lva/SPfq/AWAROQvAOQgfwEgB/kLADnIXwDIQf4CQA7yFwBykL8AkIP8BYAc5C8A5PgPOkta7z/sDF0AAAAASUVORK5CYII=" alt="" />(由于担心黄色看不清,在那里做了一个简单说明)
得出优先级结果:当且仅当有两个或者是多个class或者id的时候,谁在前面就谁的优先级高。
3>只有标签div选择器的时候
xiaoxuetu.html(蓝色样式先,红色样式后)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<style type="text/css" media="screen"> div {
color: blue;
} div {
color: red;
} </style>
</head> <body>
<div>蓝色样式先,红色样式后</div>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQwAAABlCAIAAAA3YkriAAAgAElEQVR4nO2c+V9TV/7/798w3+K4dZt2ZtpPxSLaadX22+nn25n5fGfmW51qHbUqXakCiqKAIiCuoywiKIgiIiCQACGEsG/ZIfseIGTfFxIIBGlZOvf7w00ulyQkwWor4309ng8eJ+97zvu8z7nnfc+5QQEMY9/HvL9+VlwyKyqaFRbOCApmBDeeewpmhYWzoqJZccnB7S+qnDPdcne33N0ld3fJ3Z2DE+2y8RaxgyC0NQltTQJbk8CG59vwfBueZ2vkWXE8K45rbeBa6rnmOo65jm3Gss1YthnDNmHZFizHguVYMWwrlmvFcq11XFsdz1bPt9fzbQ2C0XqBo0HowAmdOJETJxprFI3jxOM4katR5GoUu3BiF07sahB5qEdQJ3JhhR4wQhdWtABG5MJARqGngEHU9CBYoNb7s1bgqhG4agTjNYLxasF4NX+8ij9eyR+r5I2Vcz3c547d546VccfuQfDGSnljpbyxu7yxu/yxO/yxO/zxOzwPt7ljtzljxWxnMctZxHTeGnDc6nfcZIzepI/epI8W0uyFNPtNqv0m1VZItRVSbIUU202qF5rtFs1+i26/RbcXMUaRFHuwQxTR7UU0G8Qtuu0W3XaTaiukWAoplhsk840+Y36PIa9Hn9etz+3W5XZqczu1OR3a7A61h3b1tXb1tXbV1Xbl1Vbl1VYlYHBOxWxfP913bLor9lF7zKO2g49aP3/eaTv4qD1muit2uu/Ywe0vqp0z3SPunhF394i7e8TdJnXcb+dfLSdmFtVmFtVm3qrJvFWTAXGzJv1mdfrN6rOF1WcLqtMKqtIKqs5A3Kg6c6PqTMHDMwXVHgqrzxRUn7lZk3azFuLszdqzt2rPFmHOFmHTi7Bni7HpxXXpt+vSb9en325ActZLWnF9WnH92eL6tKL6Mz4U+1m8BKgcitSi+tRb9Sm36lJu1SXfrDt5s+5kITapEJtUiD1RiD1RiD1egD1egE0s9HDMl7qjhXVHC+oSCrAJBdiEG9iEfEx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kA/09+F9aahk93vFjWQp/Ewto/wXnJ2SoqLxaZpIgJzScJ1w4HwNm3bLuazi3OWTkj6Egfp5Ikvw884MmSSg96Qla1jM7yKb07CdJOEMLp9UvPj9wL092j/0PUhg7ybIOKuFPq/9h4Kf0ErLfZ3MnCcf5056fx07F50bLfydZyriUJYjPIE2We0IIngPhP1mf1OPzpyTJzzk/QW5lyF6eG63YJPF/iIYfVZCPj5Ekyz1uheMwZJMnNT9okoShFZUkIc/KAU8OPyVngiicSMK3LzeeJzI/IY+gaJKAIBgsSYKcgIOfiR+jfsDel4oqxICWeHwGH134/oMEs7LmJ8yoUIXeSX6OEJ70MwxeBP8Z9/gpzc/T7uU/SOgsoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQmiSoEIVQv8fZPb8aNHvi9MAAAAASUVORK5CYII=" alt="" />
xiaoxuetu2.html(红色样式先,蓝色样式后)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS样式表优先级测试</title>
<meta charset="UTF-8" />
<style type="text/css" media="screen">
div {
color: red;
}
div {
color: blue;
} </style>
</head> <body>
<div>红色样式先,蓝色样式后</div>
</body>
</html>
显示效果:aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPcAAABRCAIAAACBq6f3AAAQYklEQVR4nO1c6VYbSZbWc/EC8wDzAPNnjmf+TnVXVXfbrpbLdncbu2z6nAHjwmoGy2AW7QnadyEphYR2gYV25aIFCa1QaHExPxJnJZmpVApTLOn4znd8UhE3bmyfbt4IWxY5oxhBxzlRRxR1RBF75AJt5HMUs8cwewx3xEqOeNmRKDsSFSfJPW4S9mVHvGyPlW1URsvWWNkaK1mjJWu0bImWLJGSOYJ/JmaOYKYIZgpjxghuDGPGMG6MfGYYN4RxfRg3hHFDGNeFcF0Q1wUx3S6q3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n2FtUusz+drp5yewYEvDaOUTnBfbyjccUlSseq0W/ypwLp6j7WzhyeZg5P97F2IF01+VMfDDsSpUPjiiWwzo3PChCQSlH6sMeTyfIvzmhR4Yi818ISlXNBYV9Q2CUqp1QLKxwRVwxJlk/4ewMEvDaK0tUeIKCwKUpVe4CAwqZo3RwCBBQ2WX5eAAAgMACVAwgfQOUAwgdQOYDwAVQOIHwAlQMIH0DlAMIHUDmA8AFUDiB8jFc52/9LdZVNqMbMhnxckTZjjS8xFz6YdNi3dn0m9XxXcLtUPvbjWA/cOrjrKh/7cawHPoGASmFgzDyYa8okswkfM44uRlXx8XBtKh81zbFzv4XrIzxZ08BX5TxDyKTl3FU8MTZw8tTfFQ7gbq2P4ME1RY4YwLo0E20hU23cWrxc7LzE+/1yGBUO+PR+g+vDPWDBYOQUuWPeqJKJ1neUq1GFHEPlWX7lO8oUN/dgbtX6kLWXGNXdwiVPnzyFNTZsTLS1o8Df+HpUzj9w3ob1EYCIx2Ky0+ek5Tx3kUMiTA/MqlE6uNwbfCKMiuW3f304OhUe+OblPKsuEbpYZTHRxvDZJ6rNFe4rh7j5xODbsD5ftconevNytBrr5BJv5Nuj8klxC9eH7OVq33K3Cr9vLOfjnPt1zLrWfEo4DK42lvNX7URdX9v6XPq7dIdwyXl8icr5RJpJX7LcIuYf2yYNYEwtjioc2/Uom991fTiGOraXO4Tx85g0Y+HjcGyTsbvIHBV/bXF8FIzKea7P165y7szsRlQ+Nl9kffl+iejH4lapfNL1GZvFCV/lZ2zLzScv5DDj/1q49LdoVABjNeMIeGPBZ5q3eX14jkoYuPl5XHkUIXdRGJv0O63P793LrYJQ5gEAMBpA5QDCB1A5gPABVA4gfACVAwgfQOUAwgdQOYDwAVQOIHwAlQMIH0DlAMIHUDmA8AFUDiB8AJUDCB9A5QDCB1A5gPDx/2TJUiXk1mC7AAAAAElFTkSuQmCC" alt="" />
从两个结果我们可以知道,当只有标签选择器的时候,后面定义的样式表的优先级就越高。
四、总结
1.当只使用id选择器、class选择器或者标签选择器的时候,不管是使用多少种样式表定义方式,都是内嵌样式的优先级最高,接下来外部样式表和内部样式表的就得看他们的引入顺序了;
2.当只使用id选择器或者class选择器的时候,同一个标签内不管使用了多少个,都是排在前面的优先级更高;
3.当只使用标签选择器的时候,如果定义了多个一样的,你们写在最后面的标签选择器生效,也就是它的优先级最高;
4.当同一个标签中既有id选择器,又有class选择器,同时又有标签选择器的时候,优先级的次序是id选择器 > class选择器 > 标签选择器;
5.当每一种都有的时候,那就根据具体情况具体分析吧,嘿嘿,哈哈……
恩,这篇文章我很用心写的哦,如果大家觉得好,麻烦点击一下赞吧,又或者你有什么疑问或者不一样的意见,欢迎留言讨论哦,因为白天要上班,所以我会在晚上有空的时候及时处理的,还请见谅哈。