float: left;
display: inline block;
padding: 15px;
list-style-type: none;
CSS
li {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
a:hover {
color: gray;
}
a {
text-decoration: none;
color: black;
}
/* Main Menu START*/
.Home {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
.Analyser {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
.Tag-Generator {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
.Link-Shortener {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
.Promotor {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
.Leaderboards {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
/* Main Menu END*/
/* Version Menu START */
当我删除" li {attributes}"在CSS中,它似乎不适用于所有.home .analyser,为什么会这样?
E.g。它应该与
一起使用li {
float: left;
display: inline block;
padding: 15px;
list-style-type: none;
}
但它并没有尝试过li .home {attributes},但它似乎对我不起作用。
答案 0 :(得分:0)
您错过了display
属性值中的连字符。它应该是:
display: inline-block;