php培训讲师 | 七月 8, 2010 | 1 comment
当一个div同时有class和id 设置样式时,id设置的样式会覆盖掉class设置的样式,但如果在这个div上面直接加style时,style的优先级最高,会覆盖掉原来的样式。
在CSS中,id的优先级比class高,style的优先级比id高。 was posted on 七月 8, 2010 at 2:51 下午 in div+css学习 and tagged as class id style 优先级, 北京php培训. It was last modified on 七月 8, 2010 at 2:51 下午. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response or trackback from your site.
Share on Twitter, Facebook, Delicious, Digg, Reddit
Your email will not be published or shared. Required fields are marked *
名称 *
电子邮件 *
网站
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">
反垃圾验证码(必填)* 请输入图片中的字符以验证你并非垃圾机器人. 点击图片收听验证码的语音版.