<style> .nav > li > a { position: relative; display: block; padding: 5px 5px; } </style> 转载于:https://www.cnblogs.com/geniussoft/p/4742063.html