#ruler * {
            box-sizing: content-box;
        }
        #ruler {
            position: absolute;
            z-index: 99999;
            top: 200px;
            left: 200px;
            width: 698px;
            height: 100px;
            overflow: hidden;
            border: 1px solid #000;
            background: #FFFFD7 url(../img/ruler.gif) repeat-x -1px 0;
            font: 12px/160% Arial,Simsun;
            color: #000;
            -moz-user-select: none;
            -webkit-user-select: none;
            user-select: none;

        }
        .ruler_mark {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 20px;
            cursor: text;
        }

        .ruler_mark_b {
            top: auto;
            bottom: 0;
        }

        .ruler_mark div {
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 30px;
            background-color: #FFFF28;
            overflow: hidden;
            opacity: 0.6;
            filter: alpha(opacity=60);
        }

        .ruler_mark_b div {
            top: auto;
            bottom: 0;
        }

        .ruler_num {
            position: absolute;
            top: 15px;
            left: 0;
        }

        .ruler_num_b {
            top: auto;
            bottom: 35px;
        }

        .ruler_num div {
            position: absolute;
            margin-left: -22px;
            width: 40px;
            text-align: center;
            line-height: 20px;
        }

        .ruler_text_wrap {
            position: absolute;
            width: 100%;
            line-height: 100px;
            text-align: center;
            font-size: 14px;
            font-weight: bold;
        }

        .ruler_text_d {
            margin-left: 20px;
        }

        .ruler_btn_left {
            position: absolute;
            top: 30px;
            left: 0;
            width: 15px;
            height: 40px;
            line-height: 40px;
            cursor: w-resize;
            font-size: 16px;
            text-align: right;
        }

        .ruler_btn_right {
            position: absolute;
            top: 30px;
            right: 0;
            width: 15px;
            height: 40px;
            line-height: 40px;
            cursor: w-resize;
            font-size: 16px;
        }

        .ruler_drag {
            position: absolute;
            top: 20px;
            left: 0;
            width: 100%;
            height: 60px;
            cursor: pointer;
            cursor: -webkit-grab;
            cursor: -moz-grab;
            cursor: pointer 9;
        }

        .ruler_drag_move {
            cursor: -webkit-grabbing;
            cursor: -moz-grabbing;
        }

        #ruler_blank {
            position: absolute;
            z-index: 99999;
            top: 0;
            left: 0;
            display: none;
            width: 100%;
            height: 100%;
            background-color: #FFF;
            opacity: 0;
            filter: alpha(opacity=0);
        }

        .ruler_option {
            position: absolute;
            top: 44px;
            left: 30px;
        }

        .ruler_option a {
            float: left;
            display: block;
            width: 12px;
            height: 12px;
            margin-right: 5px;
            border: 1px solid #FFFFD7;
            background: url(../img/ruler.gif) no-repeat;
        }

        .ruler_option a:hover {
            border: 1px solid #E0E0E0;
            border-right-color: #666;
            border-bottom-color: #666;
            cursor: default;
        }

        .ruler_option a.ruler_rectangle {
            background-position: 0 -100px;
        }

        .ruler_option a.ruler_line {
            background-position: -12px -100px;
        }

        .ruler_option a.ruler_minimize {
            background-position: -24px -100px;
        }

        .ruler_option a.ruler_close {
            background-position: -36px -100px;
        }

        .ruler_new_rectangle {
            position: absolute;
            z-index: 99999;
            left: 0;
            top: 0;
            width: 0;
            height: 0;
            background: rgba(255,0,0,0.6);
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99FF0000,endColorstr=#99FF0000);
            text-align: right;
        }

        .ruler_new_rectangle .ruler_new_text {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background-color: #F4EA1E;
            padding: 3px 5px;
            color: #000;
        }

        :root .ruler_new_rectangle .ruler_new_rectangle {
            filter: none;
        }

        .ruler_new_line {
            position: absolute;
        }

        .ruler_new_line div {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            background-color: #F00;
        }

        .ruler_new_line .ruler_new_text {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100px;
            height: 20px;
            margin: -10px 0 0 -50px;
            background-color: transparent;
            text-align: center;
            font-weight: bold;
            color: #000;
        }

        #ruler_mini {
            position: fixed;
            z-index: 99999;
            left: 0;
            bottom: 0;
            display: none;
            width: 50px;
            height: 15px;
            margin: 5px;
            overflow: hidden;
            border: 1px solid #000;
            background: url(../img/ruler.gif) no-repeat 0 -85px;
            cursor: pointer;
        }
		
		* html {
            background-image: url(about:blank);
        }

        * html #ruler_mini {
            position: absolute;
            top: expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight)-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0));
        }