简体   繁体   English

如何更改HTML框角的颜色?

[英]How do I change the color of an HTML box corner?

 <iframe width="100%" height="500" src="https://minnit.chat/Real97ChatRoom?embed&amp;web" style="border: none;" allowtransparency="true"></iframe><br /><a href="https://minnit.chat/Real97ChatRoom" target="_blank" rel="noopener noreferrer"></a> 

I'm trying to put a chat room on my website and I was given a embedded code in order to do this but for some reason the corners of the box are white and it looks unprofessional. 我正在尝试在我的网站上放置一个聊天室,并为此提供了嵌入式代码,但是由于某些原因,盒子的角是白色的,看起来不专业。 I believe the reason why it's showing a white corner is because the chat room box itself has rounded corners and the background possibly isn't transparent? 我相信它显示为白色角的原因是因为聊天室框本身具有圆角,并且背景可能不是透明的? So it's leaving the white mark. 因此,它留下了白色标记。 I'm not too sure but I want to see if there's a way to add some code to turn those white marks black or transparent so I can keep the rounded corners as is. 我不太确定,但是我想看看是否可以添加一些代码来将这些白色标记变为黑色或透明,以便我可以将圆角保持不变。 I'll leave a photo below as reference. 我将在下面留下一张照片作为参考。 Please open the picture fully to see the white marks I'm talking about. 请完全打开图片以查看我在说的白色标记。

The code I was given is listed above as well. 上面也列出了我得到的代码。


Take a look and see if you can help. 看一下是否可以帮忙。

Thank you. 谢谢。 在此处输入图片说明

<style>
iframe{
    -webkit-box-shadow:inset 0px 0px 0px 10px #f00;
    -moz-box-shadow:inset 0px 0px 0px 10px #f00;
    box-shadow:inset 0px 0px 0px 10px #f00;
}
</style>

You can try this code it should work fine. 您可以尝试使用此代码,它应该可以正常工作。

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

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