只是试图通过嵌套深度来缩进optgroup块,我已经尝试了一般margin-left规则,嵌套元素然后尝试应用相同的规则,尝试过padding-left......这样的缩进是可能的吗?看起来很简单:P
margin-left
padding-left
在下面的示例中,标记为"client2_a"的optgroup应缩进比其他标记更多,因为它嵌套在"client2"中.
http://jsfiddle.net/Tb5Rc/5/
html css select indentation optgroup
css ×1
html ×1
indentation ×1
optgroup ×1
select ×1