html - 建立一个右侧菜单,坚持中心 html

标签 html css drop-down-menu

首先,我很抱歉我提出了这个新问题,但我一直在寻找这个位于 html 页面右中心的菜单/导航。例如,您可以在本页左侧看到 float 的社交插件:http://www.addthis.com/social-buttons

我想用我自己的图像制作一个类似的图像,从而导致不同的 html 页面。希望有人能帮忙。

最佳答案

将此应用于菜单的容器 div:

.menu {
  position: fixed;
  right: 0px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

关于html - 建立一个右侧菜单,坚持中心 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41825310/

相关文章:

html - 显示 : flex; inconsistently displaying elements

php - MySQL/php 字符集疯狂 : which one is correct?

css - 从右到左语言的有效 CSS 布局切换

html - Blogger 下拉菜单尝试 2

javascript - 如何在单击另一个 div 时切换 `<div>` 项目?

javascript - onload 在 wordpress 中不起作用

javascript - 使用 jQuery 和 Javascript 更改 DIV 内容的功能不起作用

javascript - 根据单击哪个链接显示隐藏 div

php - 多下拉查询过滤器

javascript - bootstrap 4 行后面的下拉剪裁