fix some code problem and css style selector

fix some code problem and css style selector