什么是在CSS中使用垂直条的正确语法? [英] What is correct syntax for using vertical bar in CSS?

查看:321
本文介绍了什么是在CSS中使用垂直条的正确语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有写这个CSS,我不知道该怎么做这个代码。

I didn't write this CSS and I don't know what to do with this code.

#r_constraint{
float:left;
height:40px;
| height:42px;
overflow:hidden;
margin:0 27px;
width:698px;

我在此属性上收到错误 | height:42px;

I'm getting an error on this property "| height:42px;".

Warning: Expected declaration but found '|'. Skipped to next declaration.

我看过,但不是真的我正在寻找。所以我尝试 6.1.1。类型选择器和命名空间,但它似乎正在使用垂直条描述元素,就像这里 is-the-vertical-bar-valid-css-or-firefox-specific 。并在 4。 CSS限定名称 height 属性不完全是正在描述的。

I looked stackoverflow - what does pipe mean... but wasn't really what I was looking for. So I tried 6.1.1. Type selectors and namespaces, but it appears to be describing using the vertical bar for elements, just like here is-the-vertical-bar-valid-css-or-firefox-specific. And at 4. CSS Qualified names that height property is not exactly what is being described either.

那么,我该怎么办呢?删除垂直条后的空格,完全删除它或尝试 * | height ,或者甚至可以在 height 属性?任何人?

So, what do I do with this guy? Remove the space after the vertical bar, remove it altogether or try "*|height", or can he even be used on the height property? Anybody?

感谢

推荐答案

这两者都用作命名空间限定词选择器,它们都不在本上下文中有效。我不知道某人的意图,也许他们想评论它。如果它不打破一切,只要删除它。

It's both used as a namespace qualifier and a selector, neither of which are valid in this context. I'm not sure what someone intended, perhaps they wanted to comment it out. If it doesn't break everything, just remove it.

这篇关于什么是在CSS中使用垂直条的正确语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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