Delete redundant lines and add some lines in css