简体   繁体   English

我有一个按钮标签的边框问题

[英]I have a Problem with a border from a button tag

I made an button with this code:我用这个代码做了一个按钮:

I already added some CSS code:我已经添加了一些 CSS 代码:

 .btn { width: 100%; height: 50px; background-color: #3f9a39; color: white; border: none; text-transform: uppercase; letter-spacing: 2px; } fieldset{ padding:0; }
 <fieldset> <button type="submit" class="btn btn-lg" id="submit" value="Submit">Ihre Nachricht absenden</button> </fieldset>

At the moment it looks like this: https://i.stack.imgur.com/JSxKG.png目前它看起来像这样: https : //i.stack.imgur.com/JSxKG.png

You can see that I have a border but how can I remove the border ?您可以看到我有边框,但如何删除边框?

I already tried it with:我已经尝试过:

    border: none;
    outline: none;

Sincerely yours您忠诚的

This is because of fieldset not with the button.这是因为fieldset不带按钮。 Try this尝试这个

fieldset {
   border: none; // or use border:0;
}

Live DEMO现场演示

 .btn { width: 100%; height: 50px; background-color: #3f9a39; color: white; border: none; text-transform: uppercase; letter-spacing: 2px; } fieldset{ border:none; }
 <fieldset> <button type="submit" class="btn btn-lg" id="submit" value="Submit">Ihre Nachricht absenden</button> </fieldset>

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

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