Sunroof having a fixable opening angle, comprising: a sunroof body which is composed of a top cover and a mounting frame and can be opened outwards, a supporting arm provided on the sunroof body for controlling an opening angle, and a sliding chute for cooperating with one end of the supporting arm for moving, wherein end parts of the top cover and the mounting frame are rotatably connected; one end of the supporting arm is connected with the top cover , and the other end of the supporting arm is connected with the mounting frame ; and one end of the supporting arm is rotatably connected for changing a supporting angle of the supporting arm , the other end of the supporting arm is provided with a sliding member , the sliding member is assembled with the sliding chute provided on the sunroof body, the sliding chute is provided with a plurality of limiting slots , and the limiting slots are used for fixing a movement position of the sliding member , wherein one end of the top cover is connected with one end of the mounting frame by a hinge , and the other end of the top cover and the other end of the mounting frame are provided with a locking assembly for closing and locking the top cover and the mounting frame , wherein the locking assembly comprises a locking latch and a clamping hook , characterized in that the locking latch and the clamping hook are respectively provided on the top cover and the mounting frame , and the clamping hook is provided at one end, away from the hinge , of the sliding chute , and the locking latch corresponds to the clamping hook , wherein the clamping hook comprises a clamping lock provided at a top end of the clamping hook , a guide inclined plane provided on one side, away from the top end, of the clamping lock , and a reset spring adjacent to the guide inclined plane ; and the clamping hook is in an L-shape, a bending part of the clamping hook is configured to be assembled with the locking latch , and the guide inclined plane is provided at a section away from the bending part, and the guide inclined plane is used for cooperating with the sliding member to change a working state of the locking assembly . one end of the supporting arm is rotatably connected for changing a supporting angle of the supporting arm , the other end of the supporting arm is provided with a sliding member , the sliding member is assembled with the sliding chute provided on the sunroof body, the sliding chute is provided with a plurality of limiting slots , and the limiting slots are used for fixing a movement position of the sliding member , wherein one end of the top cover is connected with one end of the mounting frame by a hinge , and the other end of the top cover and the other end of the mounting frame are provided with a locking assembly for closing and locking the top cover and the mounting frame , wherein the locking assembly comprises a locking latch and a clamping hook , characterized in that the locking latch and the clamping hook are respectively provided on the top cover and the mounting frame , and the clamping hook is provided at one end, away from the hinge , of the sliding chute , and the locking latch corresponds to the clamping hook , wherein the clamping hook comprises a clamping lock provided at a top end of the clamping hook , a guide inclined plane provided on one side, away from the top end, of the clamping lock , and a reset spring adjacent to the guide inclined plane ; and the clamping hook is in an L-shape, a bending part of the clamping hook is configured to be assembled with the locking latch , and the guide inclined plane is provided at a section away from the bending part, and the guide inclined plane is used for cooperating with the sliding member to change a working state of the locking assembly . <EOS>