4

Is there a way to set only the top border for an element through Pixate? I don't see it in the docs.

I've tried both of these, but they apply the border to all four sides:

#footer {
    border-top:5px solid #FF0000;
}
#footer {
    border:5px solid #FF0000;
    border-width:5px 0px 0px 0px;
}

PLEASE NOTE: I am talking about Pixate here, NOT browser CSS!

4

1 回答 1

1

您不能将边框应用于单边,不。

但是有一个解决方法:

#footer {
  box-shadow:inset 0px 1px 0px solid #FF0000;
}

这应该会产生相同的效果。祝你好运。:)

于 2014-04-18T03:04:06.430 回答