覆盖USER AGENT STYLE SHEET - Chrome [英] Override USER AGENT STYLE SHEET - Chrome

查看:690
本文介绍了覆盖USER AGENT STYLE SHEET - Chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列表项目,使用悬停效果显示在网页上。挑战我面对这里是当我应用一些边框或背景的列表项,它看起来很可怕,因为填充是自动生成。



看看这个



任何人都请帮我重写。



我已经搜索过论坛,如何关闭它 关闭

$ p

  ul {padding:0} 

默认样式。


I've got a list item that is being displayed on the webpage using the hover effect. Challenge i'm facing here is when i apply some border or background to the list item, it looks horrible because of the padding that is being generated automatically.

Look at this image please.

Anyone please help me to override it.

I already searched the forums but i only got how to turn it off from the console not to over ride it.

解决方案

Just add the following style:

ul { padding:0 } 

That will override the default style.

这篇关于覆盖USER AGENT STYLE SHEET - Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆