开发者

How to disable a border of html?

Can any one please tell me how can I disable the border of html? I was going to embed the html on another application and the border makes it look kind of bo开发者_高级运维ring.. Is there any CSS code to do this?


Sounds like you're using an iframe. If so:

Remove border from IFrame


You may try border-style:none in CSS, but it would help if you clarified your question a bit :-).


As the others have said, your question is a bit unclear. I will try my best.

If you are talking about an iframe, try this:

<iframe src="http://www.whatever.com/" frameborder="0">

http://www.w3schools.com/tags/att_iframe_frameborder.asp

*Actually in this example frameborder="yes/no" also works in IE.

The previous example is deprecated in HTML5, so I would recommend using the following CSS code (or if you aren't using an iframe):

frame-border: none;

http://www.w3schools.com/css/css_border.asp

border: 0; might also work, but I haven't tested it yet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜