将CSS添加到<a> Tag Not Working

时间:2015-09-09 09:08:05

标签: css button youtube

I tried adding CSS to a button, but it just outputs as a plain hyperlink.
Do I need to use a <button> tag instead?

<a href="example.com" style=".button { /*Tons of correctly written, irrelevant CSS */ }">text</a>

1 个答案:

答案 0 :(得分:0)

如果使用内联元素样本:

<a href="#" style="border:1px"

不使用:<a href="#" style=".button{border:1px}"