Method for adjusting display attribute, and related device
Abstract:
A method for adjusting a display attribute, and a related device, to make a display effect of an element on a page more prominent. The method includes obtaining a first luminance and a second luminance on a page, where the first luminance is a luminance of an element on the page, and the second luminance is a luminance of a background region in which the element is displayed; determining a first contrast ratio between the element and the background region based on the first luminance and the second luminance; and adjusting a display attribute of the element when the first contrast ratio is less than a preset contrast ratio.
Public/Granted literature
Information query
Patent Agency Ranking
0/0