css3 - border-radius兼容性問題
問題描述
想設置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;}
問題解答
回答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;
相關文章:
1. 文本處理 - 求教使用python庫提取pdf的方法?2. python - Pycharm的Debug用不了3. html5 - 百度echart官網下載的地圖json數據亂碼4. 這是什么情況???5. java - svn導下來的項目,web-inf下怎么沒有lib文件呀?6. 如何用筆記本上的apache做微信開發的服務器7. node.js - nodejs開發中,有什么模塊能夠在控制臺中顯示調用某一接口的加載時間?8. javascript - 想問下百分比進度條實現原理以及這種布局怎么實現,還有賽馬時背景跟著動的原理?9. Python的os.listdir在獲取文件列表時的順序問題10. 統計 - MYSQL版本問題導致SQL語法錯誤!unknow column ’SQLSTR’
