China's consumer price index (CPI), the main gauge of inflation, decreased by 0.3 percent in July compared with the same period last year, the National Bureau of Statistics (NBS) said Wednesday.