您的位置:首页技术文章
文章详情页

css3 - border-radius兼容性问题

浏览:92日期:2023-07-26 11:43:26

问题描述

想设置table的四个角是圆弧状,但是下边的两个角在火狐中无法显示出来。在谷歌中可以正常显示

table上部分的代码:`<thead>

<th class='col1 header radius_t'>table header</th> <th class='col2 header'>th2</th> <th class='col3 header radius_r'>th3</th></thead>`

table下边的代码:

<tr class='dan rad_bot'> <td class='col1 radius_l'>row seven</td> <td class='col2'>val</td> <td class='col3 radius_b'>val</td></tr>

#r5 .radius_t{ border-radius: 5px 0 0 0;}#r5 .radius_r{ border-radius: 0 5px 0 0;}#r5 .radius_b{ -moz-border-radius-bottomright: 5px;}#r5 .radius_l{ -moz-border-bottom-left-radius: 5px;}

css3 - border-radius兼容性问题

问题解答

回答1:

首先有个建议 thead 里面套了tr别忘记其次:写法是这样的顺序 你看下是不是写错了border-top-left-radius: 2em 0.5em;border-top-right-radius: 1em 3em;border-bottom-right-radius: 4em 0.5em;border-bottom-left-radius: 1em 3em;

标签: CSS
相关文章: