css and js, realize basic functions