物品在悬停时跳转

时间:2016-06-20 07:26:29

标签: html css wordpress

链接:http://path.com.my/v2/gallery/

当您将鼠标悬停/鼠标悬停在标签中的某个链接上时,尤其是在EXTERIOR,ILLUMINATED,INTERIOR,PYLON附近,第二行上的项目会继续移动。

我尝试在悬停时更改一些CSS,但它似乎不起作用。 有人可以帮忙吗?

3 个答案:

答案 0 :(得分:1)

解决:

margin: 0 6px 0 0 !important;

答案 1 :(得分:1)

float移除.sortLink并改为使用inline-block

使用以下css:

.sortLink {
    display: inline-block;
    vertical-align: top;
    color: #999;
    font-size: 14px;
    padding: 5px 8px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 5px 5px 0;
    transition-duration: 0.5s;
}

答案 2 :(得分:0)

删除浮动:左;来自标签和显示:inline-block;

class MyVarClass:
    def __init__(self):
        self.a = 1
        self.b = 2
        self.c = 3

# this works, but I don't want to write n functions
def set_a(myvar_object, value):
    myvar_object.a = value

# this is what I actually want:
def set_vars(myvar_object, var_name, value):
    myvar_object.var_name = value

myvar = MyVarClass()
# I want to do the same as  myvar.a = 4
set_a(myvar, 4) # works as intended, now myvar.a is 4
set_vars(myvar, a, 4)  # error, a is not defined