((HTML CSS)试图使Google友好的链接看起来像按钮

问题描述 投票:0回答:1

我将要在我的网站上更改100多个按钮(它们目前是onclick JS按钮)我创建了一个名为buttoneo的新类,我只是用href链接替换了旧按钮,但是用类来对其进行样式设置。这对Google和SEO有好处吗?


<a class="buttonseo" style="left:30px;" href='../tryyourselfcodes/howto_js_guide2.php' title='learn to code'>Try yourself >></a>

.buttonseo {
  background: linear-gradient(to bottom, #4eb5e5 0%, #389ed5 100%); /* W3C */
  border: none;
  border-radius: 5px;
  position: relative;
  border-bottom: 4px solid #2b8bc6;
  color: #fbfbfb;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  text-align: center;
  text-indent: 5px;
  box-shadow: 0px 3px 0px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0.7em 3.4em;
  left: 100px;
  top: 20px;
}
css
1个回答
0
投票
根据我的说法,一切都很好:)
© www.soinside.com 2019 - 2024. All rights reserved.