0

Newbie question: Can someone tell me what is governing the height of the menu with inspect element? (this is a wp template) Changing the padding on the ".li a {" makes the menu buttons smaller but I cant seem to vertically shrink the container..

Thanks for spotting it in advance!

4

2 回答 2

0

如果没有明确说明 height 属性,则它是从其祖先之一继承的。

于 2015-05-13T09:34:44.743 回答
0

如果.li a包含值为 10px 的填充属性,则必须更改值,例如

.li a {
  padding: 5px 10px 5px 10px; // Padding: top right bottom left
}

因此,我们只需要使用顶部和底部值。

于 2015-05-13T09:38:12.603 回答