I want this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="foo.css" type="text/css"?>
<foo>
<bar>Item1</bar>
<bar>Item2</bar>
</foo>
如何在浏览器中显示HTML中的foo为ol,bar为li?这个可能吗?以下代码无法实现:
foo {
display: block;
}
bar {
display: list-item;
list-item-style: decimal;
}
但我知道有些东西是有效的,因为通过将显示样式设置为list-item,项目被分成单独的行。