在fragment中一定要用 getChildFragmentManager().beginTransaction() 在activity中用:getSupportFragmentManager().beginTransaction()