在火狐下使用边框怎么没有效果

2025-04-30 15:57:29
推荐回答(1个)
回答1:

  您好,感谢您对火狐的支持

  为您提供一个CSS边框的实例,您对比参考下:

CSS:
p {padding: 2%; border: 1px solid black; }
h5{padding: 0px; border: 1px solid red;}
XHTML:

This is a paragraph that has a padding of 5 pixels on every side: left, top, right, and bottom.


This header has no padding. It is only spaced away from the paragraph because the paragraph has a padding of 5 pixels!

  您可以在火狐官方网站下载火狐浏览器,在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。