css - FireFox border樣式異常
問題描述
在FireFox下,頁面里一些table的邊框顯示異常(消失不顯示),但在IE和Chrome下正常;頁面效果:
單元格樣式:
頁面在縮放時,邊框消失的情況會發(fā)生改變。求大神幫忙回答,謝謝!
calendar.css如下:
.calendar { color: rgb(103,103,103); border-collapse: collapse; width: 100%;}.calendar td { border: 1px solid #6f6f6f; text-align: center;}.calendar thead tr:last-child td { border: 0px solid #6f6f6f; border-width:1px 0px 1px 0px; text-align: center;}.calendar thead tr:last-child td:first-child { border:0px solid #6f6f6f; border-width:1px 0px 1px 1px; text-align: center;}.calendar thead tr:last-child td:last-child { border: 0px solid #6f6f6f; border-width:1px 1px 1px 0px; text-align: center;}.calendar-head-oper{ font-size: 18px; cursor: pointer;}.calendar-head-title{ font-size: 16px; letter-spacing: 2px;}.calendar-text {/* background-color: #6f6f6f; */}.calendar-leftbtn { margin-left:5px; float: left}.calendar-rightbtn{ float:right;}/*不可點*/.calendar-td-notclick { color: #DDDDDD;}/*當(dāng)前*/.calendar-td-today { color: #eb6100;}/*異常*/.calendar-td-abnormal{ color: #eb6100; line-height: 10px; cursor:pointer;}.calendar-td-span-l1{ color: #eb6100; }.calendar-td-span-l2{ color: #0096ff; }/*選中*/.calendar-td-selected { color: #0096ff;}
js中的resize:
$(window).on('resize', function() { $('#index').adjustScreen(); resizecontent();});var resizecontent = function(){ $('.index-content-detail').height($('#index').height() - $('.top').height()*1.1);}
問題解答
回答1:我想知道框線是不是動態(tài)計算的?是不是resize里有rem處理?chrome和firefox對小數(shù)px的處理不太一樣,但是看不到代碼所以不確定是不是這個原因。
回答2:td加個border試試
相關(guān)文章:
1. 前端 - html5 audio不能播放2. java固定鍵值轉(zhuǎn)換,使用枚舉實現(xiàn)字典?3. vim - win10無法打開markdown編輯器4. mysql - 千萬數(shù)據(jù) 分頁,當(dāng)偏移量 原來越大時,怎么優(yōu)化速度5. 如何解決tp6在zend中無代碼提示6. javascript - 有沒有類似高鐵管家的時間選擇插件7. 這是什么情況???8. python - flask學(xué)習(xí),user_syy添加報role is invalid keyword for User.9. css - BEM 中塊(Block)有木有什么標(biāo)準(zhǔn) 何時決定一個部分提取為塊而不是其父級的元素呢(Element)?~10. javascript - 微信網(wǎng)頁開發(fā)從菜單進(jìn)入頁面后,按返回鍵沒有關(guān)閉瀏覽器而是刷新當(dāng)前頁面,求解決?
