我以前遇到过类似的问题,并试图最终纠正它。如果您在 js fiddle 中注意到 actions div 上方似乎有一个较粗的边框,我正试图找出为什么在我购买的模板中有和没有。
模板:http://kansasoutlawwreSTLing.com/files/templates/admin/peachv1.2/Template/forms.html
编辑:
我用真正的预期页面更新了我的页面,但查看操作区域,左侧和右侧仍然有边框。不知道为什么。
最佳答案
双边框是因为content div的底边框。模板中的 div 应用了规则“.box .content.with-actions”,即“border-bottom: 0 none;”。您的 fiddle 中的内容 div 没有该规则,因此它有一个底部边框,而操作 div 也有一个顶部边框,因此线条外观较粗。
不同之处在于模板中的内容 div 也有“with-actions”类,而你的 fiddle 中的则没有。只需添加该类,问题就会消失。
关于html - 较厚的边框与模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10218535/