Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebug内联css代码格式_Css_Firebug - Fatal编程技术网

Firebug内联css代码格式

Firebug内联css代码格式,css,firebug,Css,Firebug,可以在firebug css编辑器中阻止换行吗 我不喜欢这样的代码: #searchertabs ul li { float: left; list-style: none outside none; margin-right: 1px; } #searchertabs ul li {float:left; list-style: none; margin-right: 1px;} 我喜欢这样: #searchertabs ul li { float: lef

可以在firebug css编辑器中阻止换行吗

我不喜欢这样的代码:

#searchertabs ul li {
    float: left;
    list-style: none outside none;
    margin-right: 1px;
}
#searchertabs ul li {float:left; list-style: none; margin-right: 1px;}
我喜欢这样:

#searchertabs ul li {
    float: left;
    list-style: none outside none;
    margin-right: 1px;
}
#searchertabs ul li {float:left; list-style: none; margin-right: 1px;}

有趣的是,我从未想过有人会喜欢一行文字和/或阅读风格。如果有意义的话,我有时会这样写一行代码……以及您想如何禁用/启用任何属性?(例如列表样式)您的“最终游戏”是什么,为什么要这样做,mabey我们可以找到另一个解决方案?我认为这是不可能的。但即使有可能,你为什么要这么做?Firebug应该使您的代码更易于检查和调试。在这方面,降低样式的可读性会适得其反。@Lollero,Joe Landsman-我将所有css代码都写在一行中-更容易阅读选择器,因为我很少在属性中输入错误。如果您每天都使用css,这是一种常见的做法,因为您不需要处理属性,但您需要更多地使用选择器,并希望它们都在一列中—更易于阅读。