我想把About按钮移到标题下方,但它不能工作。
我试过:
ButtonToScroll.css,margin-bottom: 40%;,但是它不起作用Main.css,我做margin-bottom: inherit;陪伴1,但没有工作。我做错了什么,我该如何解决呢?
如果您需要其他信息,请告诉我。
下面是我的项目https://codesandbox.io/s/github/name/Encrypt-Your-Code的一个沙箱
发布于 2018-10-30 20:07:04
在我看来,最简单的方法是提供按钮position: relative并设置top: -80px或任何您认为最合适的:
发布于 2018-10-30 20:16:11
设置在ButtonToScroll.css中
.about { margin-bottom: 10% }并在Main.css中删除
.boxSkull { margin-top: 10% }此外,在html文档中应该只有一个<body>标记。
发布于 2018-10-30 19:59:32
在ButtonToScroll.css中添加一个text-decoration: none;下的值,名为:
margin-top: -10%;它将把所有东西从“关于”按钮向下移动。
https://stackoverflow.com/questions/53071946
复制相似问题