我有一个问题,在边缘这个悬停效果看起来真的很糟糕:(
Microsoft Edge:
Link Hover GIF (imgur)
谷歌浏览器
Link Hover GIF ( imgur )
在谷歌浏览器中,它看起来不错,但是一旦我尝试使用Microsoft Edge,它看起来就非常糟糕。有办法解决吗?
代码:
的 HTML
<div class="event--event__mod">
<a class="event--event__mod__item" href="censored">
<div class="event--mod__title">Problem Title</div>
<div class="event--mod__date">Date</div>
<div class="event--mod__price">105,00&€</div></a></div
CSS
.mod-ohanah--events {
margin-left: -30px;
}
.mod-ohanah--events:after {
content: '';
width: 100%;
height: 0;
clear: both;
display: block;
}
.mod-ohanah--events .event--event__mod {
float: left;
padding-left: 30px;
width: 100%;
box-sizing: border-box;
margin-bottom: 35px;
}
@media screen and (min-width:640px){
.mod-ohanah--events .event--event__mod {
width: 50%;
}
}
@media screen and (min-width:1000px){
.mod-ohanah--events .event--event__mod {
width: 33.333333333%;
}
}
.uk-panel-space .mod-ohanah--events .event--event__mod {
width: 100%;
}
.mod-ohanah--events .event--event__mod__item {
background: #FFF;
display: block;
color: #000;
padding: 40px 35px 30px;
height: 260px;
box-sizing: border-box;
position: relative;
}
.uk-panel-space .mod-ohanah--events .event--event__mod__item {
height: 260px;
}
.mod-ohanah--events .event--event__mod__item:focus {
outline: none;
text-decoration: none;
}
.mod-ohanah--events .event--event__mod__item:hover {
background: #f14a70;
color: #FFF;
text-decoration: none;
}
.mod-ohanah--events .event--event__mod__item .event--mod__title {
font-size: 20px;
color: #000;
font-weight: 200;
margin-bottom: 40px;
transition: all 0.667s cubic-bezier(0.16, 1, 0.29, 0.99);
}
@media screen and (min-width: 768px){
.mod-ohanah--events .event--event__mod__item .event--mod__title {
font-size: 16px;
}
}
@media screen and (min-width:1000px){
.mod-ohanah--events .event--event__mod__item .event--mod__title {
font-size: 20px;
}
}
@media screen and (min-width:1220px){
.mod-ohanah--events .event--event__mod__item .event--mod__title {
font-size: 24px;
}
}
.uk-panel-space .mod-ohanah--events .event--event__mod__item .event--mod__title {
margin-bottom: 15px;
}
.mod-ohanah--events .event--event__mod__item:hover .event--mod__title {
color: #FFF;
}
.mod-ohanah--events .event--event__mod__item .event--mod__date {
margin-bottom: 40px;
font-size: 14px;
}
.mod-ohanah--events .event--mod__price {
line-height: 38px;
padding: 0 18px;
background: #f4f4f4;
box-sizing: border-box;
border: 1px solid transparent;
font-size: 14px;
font-weight: bold;
color: #797979;
position: absolute;
bottom: 30px;
left: 35px;
transition: all 0.667s cubic-bezier(0.16, 1, 0.29, 0.99) !important;
}
.mod-ohanah--events .event--event__mod__item:hover .event--mod__price {
background: transparent;
border: 1px solid #FFF;
color: #FFF;
}
答案 0 :(得分:0)
也许你应该尝试添加
transition: background 0.667s cubic-bezier(0.16, 1, 0.29, 0.99), color 0.667s cubic-bezier(0.16, 1, 0.29, 0.99);
请参阅需要转换的每个属性
取代
transition: all 0.667s cubic-bezier(0.16, 1, 0.29, 0.99);
答案 1 :(得分:0)
使用新的Fall Creators Update修复了此问题。