问题
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;
I'm getting an error on this property "| height:42px;".
Warning: Expected declaration but found '|'. Skipped to next declaration.
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.
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?
Thanks
回答1:
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.
来源:https://stackoverflow.com/questions/7796031/what-is-correct-syntax-for-using-vertical-bar-in-css