Sharepoint CSS样式修改 [英] Sharepoint CSS style modifications
问题描述
我是Sharepoint开发的初学者.我正在做一些简单的事情,但是在网上搜索找不到合适的答案.所以,请指导我.
I am a beginner in sharepoint development. I am doing something simple but I couldn't find a proper answer searching online. So, kindly please guide me through this.
我正在尝试删除SuiteNav.css样式表中可用的css属性.由于无法编辑该文件,因此我试图在自定义样式表中进行操作.基本上,我要删除的属性是说Padding-left:5px
I am trying to remove a css property that is available in SuiteNav.css stylesheet. Since I can't edit that file, I am trying to do it in a custom stylesheet. Basically, what I want is to remove a property lets say Padding-left:5px
我需要在我的自定义样式表中将其完全从SuiteNav.css中删除.
I need to remove that property completely from SuiteNav.css by doing it in my custom stylesheet.
我确实使用F12开发人员工具取消选中该属性,并测试了结果.它在F12中运行良好.但是我无法在自定义样式表中修改相同的内容.我可以将padding-left修改为其他值,但是不能删除它.我如何能
这样做吗?
I did use F12 developer tools to uncheck that property and tested for my results. It is working great in F12. But I can't modify the same thing in my custom stylesheet. I can modify the padding-left to some other value but cannot remove it. How do I
do this?
感谢您的帮助.
推荐答案
您好,在css中您无法删除来自其他css文件的属性.您可以使用不同的值和!important关键字创建相同的属性.
hello, in css you can't remove properties which are coming from other css file. You may create the same property with different value and !important keyword.
这篇关于Sharepoint CSS样式修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!