我将要在我的网站上更改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;
}