首页 > 解决方案 > 我想将链接从侧边栏底部移动到顶部

问题描述

我使用在线模板在 Google 表格中创建了一个侧边栏。它运行良好,但更新和重置按钮位于底部,我希望它们位于侧边栏列表的顶部。

我曾尝试根据高度和其他因素更改按钮代码,但似乎无法让它变得令人满意。

这是我认为需要更改代码的地方:

.button,
button,
input[type="button"],
input[type="image"],
input[type="reset"],
input[type="submit"] {
  background: -moz-linear-gradient(top, #f5f5f5, #f1f1f1);
  background: -ms-linear-gradient(top, #f5f5f5, #f1f1f1);
  background: -o-linear-gradient(top, #f5f5f5, #f1f1f1);
  background: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
  background: linear-gradient(top, #f5f5f5, #f1f1f1);
  border: 1px solid #dcdcdc;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #333;
  cursor: default;
  font-family: arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  height: 29px;
  line-height: 27px;
  margin: 0;
  min-width: 72px;
  outline: 0;
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
}

<body>
    <div class="container"></div>
    <div class="buttons">
        <p>
            <button class="action" id="action">Add Rejections</button>
            <button id="btn">Reset List</button>
        </p>
    </div>

我最终希望这两个按钮位于侧边栏列表的顶部,而不必滚动到底部。任何帮助,将不胜感激。

标签: buttongoogle-apps-scriptgoogle-sheetssidebargoogle-apps-script-editor

解决方案


推荐阅读