def to_css_length(l):
    """
    Return the standard length string of css.
    It's compatible with number values in old versions.
    :param l: source css length.
    :return: A string.
    """
    if isinstance(l, (int, float)):
        return '{}px'.format(l)
    else:
        return l
