Home  >  Article  >  Web Front-end  >  Why does css setting table rounded border not work?

Why does css setting table rounded border not work?

王林
王林Original
2020-11-27 11:47:094535browse

The reason why setting the table rounded border in css does not work is that the property border-collapse:collapse and the property border-radius are incompatible. The correct method is [border-collapse: separate;border-spacing:0].

Why does css setting table rounded border not work?

The environment of this article: windows10, css3, this article is applicable to all brands of computers.

Cause analysis:

Setting border-radius in the table found that it does not work. The reason is that border-collapse:collapse and border-radius are incompatible.

(Learning video sharing: css video tutorial)

css:

border-collapse: separate;
border-spacing: 0;

Code implementation:








头部1 头部2 头部3 头部4
1内容1 1内容2 1内容3 1内容4
2内容1 2内容2 2内容3 2内容4
3内容1 3内容2 3内容3 3内容4

implementation Effect:

Why does css setting table rounded border not work?

Related recommendations: CSS tutorial

The above is the detailed content of Why does css setting table rounded border not work?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn