简体   繁体   English

我如何摆脱这个边界<link> ?

[英]How do I get rid of this borders for the <Link>?

I don't get why the links are surrounded by the borders when I use them in the table.当我在表格中使用链接时,我不明白为什么链接会被边框包围。

The links outside the table are looking just fine and don't have a border.表格外的链接看起来很好,没有边框。

The border is now gone but the borders for the table are still missing.边框现在消失了,但表格的边框仍然缺失。
Why is this happening?为什么会这样?

<tr key={post.id} id={post.id}>
    <Link to = "/login" 
          style={{ color: '#FFF', textDecoration: "none", outline: 'none', fontSize: 1}}
          >
        <td style={{border:0}}>{post.name}</td>
    </Link>
    <td>{post.symbol}</td>
    <td>{post.industry}</td>
</tr>

Links Inside the Table:表内链接:
表内链接:

Links outside the table:表外链接:
表外链接:

Try border: 0 in the style of the Link在链接的style中尝试border: 0

You have to put border: 0 on the <td> tag.您必须在<td>标记上放置border: 0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM