Thermal expansion of solids usually shows little dependence on temperature (except for low temperatures) whereas liquids expand at different rates at different temperatures.
The expansion of liquids is usually measured in a container.