【问题标题】:Aligning Menu Right in Twenty Eleven Wordpress在 21 Wordpress 中右对齐菜单
【发布时间】:2013-06-01 03:06:43
【问题描述】:

我对这些东西很陌生。我只想将此站点的菜单向右对齐。甚至居中也可以。它目前有点漂浮在中间的一个尴尬的地方。该网站是:http://www.socialbboutique.com。我不确定我需要做什么来修复或我做错了什么。

【问题讨论】:

标签: wordpress menu navigation


【解决方案1】:

您必须修改位于http://socialbboutique.com/wp-content/themes/twentyeleven/style.css 的 CSS 文件,并在文件末尾添加以下代码。

右对齐:

#branding .only-search + #access div { padding-right: 0; }
#access div { margin: 0; }

居中对齐:

#access ul { text-align: center; }
#access li { float: none; display: inline-block; *display: inline; *zoom: 1; }

【讨论】:

  • 嗨,我把那些替换成了:#access ul { text-align: center; } #access li { 浮动:无;显示:内联块; *显示:内联; *缩放:1; } 但它似乎没有移动它...?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-02-11
  • 1970-01-01
  • 2017-01-09
  • 2019-03-19
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多