我一直在基于模板处理一些CSS。不是我的选择,但这是我的。未记录的CSS属性
在清理CSS的过程中(有人使用CSS美化器对其进行分栏,使其成为主要的PITA来编写),我遇到了一个完全无法解释的CSS属性:nowhitespace
。
在我的文件中,它显示为nowhitespace: afterproperty;
,并且通常在单个规则中重复多次。在网络拖网之后,我发现这个神秘的属性出现在样式表的左侧和右侧,但从来没有对它做什么或者作者认为它做了什么解释。
所以,我呼吁你,Stackoverflow社区,请解释这个属性的起源,据我所知,完全没有什么,并且没有已知的浏览器识别。
下面是从文档我有,片断美化后:
ul.nav a, ul.nav a:visited {
/* grouping these selectors makes sure that your links
retain their button look even after being visited */
padding: 5px 5px 5px 15px;
nowhitespace: afterproperty;
nowhitespace: afterproperty;
nowhitespace: afterproperty;
nowhitespace: afterproperty;
nowhitespace: afterproperty;
nowhitespace: afterproperty;
display: block; /* this gives the link block properties
causing it to fill the whole LI containing it. This
causes the entire area to react to a mouse click. */
width: 160px; /*this width makes the entire button
clickable for IE6. If you don't need to support IE6,
it can be removed. Calculate the proper width by
subtracting the padding on this link from the width
of your sidebar container. */
text-decoration: none;
background-color: #C6D580;
}
寻求评论的文字后,我相信这个CSS模板的起源是一个通用的Dreamweaver模板。 Here。我想知道我的特定版本来自哪里。
谁写的CSS代码? –
“*拖网后,我发现这个神秘的财产出现在样式表的左侧和右侧*” - 请提供指向样式表的链接。 –
没有必要为''nowhitespace''''''afterproperty''创建标签,因为它们太具体。 – yadutaf