Dimitry Wolotko Posted April 9, 2008 Report Share Posted April 9, 2008 index.html<html><head><link href="one.css" rel="stylesheet" type="text/css" /><link href="two.css" rel="stylesheet" type="text/css" /></head><body><div id="divid"> <div>qedasd</div> <div>qedasd</div> <div>qedasd</div> <div class="divclass">fdfdf</div></div></body></html>one.css#divid div {color:red;}two.css.divclass{color:blue;}Вот такая конструкция не работает. Можно править только two.css. Есть мысли? Quote Link to comment Share on other sites More sharing options...
0 Storm Posted April 9, 2008 Report Share Posted April 9, 2008 #divid .divclass{color:blue;} Quote Link to comment Share on other sites More sharing options...
0 Dimitry Wolotko Posted April 9, 2008 Author Report Share Posted April 9, 2008 Точно. Спасибо. Quote Link to comment Share on other sites More sharing options...
0 yopopt Posted April 9, 2008 Report Share Posted April 9, 2008 У id приоритет выше, нежели у класса. Quote Link to comment Share on other sites More sharing options...
0 Dimitry Wolotko Posted April 9, 2008 Author Report Share Posted April 9, 2008 Просто заманался Quote Link to comment Share on other sites More sharing options...
0 Vitesse Posted April 9, 2008 Report Share Posted April 9, 2008 !important тоже спасет Quote Link to comment Share on other sites More sharing options...
Question
Dimitry Wolotko
index.html
one.css
#divid div {color:red;}two.css
.divclass{color:blue;}Вот такая конструкция не работает. Можно править только two.css. Есть мысли?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.