How to replace Swagger UI header logo in Swashbuckle

前端 未结 7 1337
旧巷少年郎
旧巷少年郎 2020-12-31 09:11

I am using the Swashbuckle package for WebAPI and am attempting to customize the look and feel of the swagger ui default page. I would like to customize the default swagger

7条回答
  •  离开以前
    2020-12-31 09:38

    This worked for me with the last version of Swagger UI in Swashbuckle

    .swagger-ui img {
         content: url([logo_path]);
         width: 140px; /* width of your logo */
         height: 40px; /* height of your logo */
    }
    

提交回复
热议问题