【发布时间】:2018-03-21 23:40:21
【问题描述】:
我的 css 不太好,所以需要你的帮助。
我对display: block; display: inline; 尝试了太多,但不明白如何修复这个设计
.mainmenu{
-moz-border-radius:10px 10px 10px 10px;
border-radius:10px 10px 10px 10px;
display: block;
padding:1px;
border:1px solid #021a40;
background-color:#FFFFFF;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
color:black;
}
.mainmenu:hover{
display: block;
padding:2px;
border:1px solid #021a40;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
cursor: pointer;
color:highlight;
box-shadow: 10px 10px 5px #888888;
}
【问题讨论】:
-
不要重复
ID。您在 span 标签上重复#mainmenu -
“但无法理解如何修复此设计”什么设计..?除非您解释或提供图像或其他内容,否则我们怎么知道预期的设计是什么……:s
-
@TJ 我已经提供了小提琴链接