我从网上看到有人在做 多行文字垂直居中 效果时
 <style type="text/css">
        #boxOuter
        {
            display: table;
            height: 300px;
            width: 500px;
            border: solid 1px black; *position:relative;}
        #box
        {
            display: table-cell;
            vertical-align: middle; *position:absolute;top:50%;width:100%;}
        #boxInner
        { *position:relative;width:100%;top:-50%;}</style>
<div id="boxOuter">
        <div id="box">
            <div id="boxInner">
                <p>
                    Some Content Here</p>
                <p>
                    Some Content Here</p>
                <p>
                    Some Content Here</p>
                <p>
                    Some Content Here</p>
                <p>
                    Some Content Here</p>
            </div>
        </div>
    </div>
我去掉了这几个*在firefox中就有问题

解决方案 »

  1.   

    这个一下子 *position:relative;又*position:absolute看不大懂、,,
      

  2.   

    position:relative;是相对定位!
    *position:relative;还是第一次看到!
      

  3.   

    *表示后面定义的css只对ie6和ie7起作用,是css hack选择符之一。
      

  4.   

    position:relative相对定位,前面加个*是第一次见,学习
      

  5.   

    类似这样的技术还有很多,参考
    http://www.div-css.com/html/XHTML-CSS/hack/1136667.html
    http://www.andymao.com/andy/post/76.html
      

  6.   

    是CSS兼容各中浏览器的写法,可以参考CSS hack
      

  7.   

    GPS_POSITION
    This structure contains location information, including latitude and longitude, as well as other related information like heading, speed, the satellites used to retrieve the ...
      

  8.   

    这是为了浏览器兼容性,前面加*表示只有IE能识别这个属性,还有很多CSS hack,比如说!important,*html和*+html等
      

  9.   

    http://dudo.org/archives/2008060122236.html