Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
884 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I create Blazor WebAssembly project in vs 2019. but , None of the icons on the menu are displayed. Who can help me , thanks .
Hi @929Free ,
By default, when we create a new Blazor WebAssembly project, the icons should be displayed, Because, the default template already add the bootstrap and open iconic bootstrap reference to render the icons.
Have you ever changes the code your project? Can you tell the details steps what you do to reproduce the problem? Or you can post the relates code about the Index.html page and the app.css file (in the
wwwroot
folder) content, so that we can try to reproduce the problem.Best regards,
Dillion
app.css:
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a, .btn-link {
color: #0366d6;
}
.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}
.content {
padding-top: 1.1rem;
}
.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
}
.invalid {
outline: 1px solid red;
}
.validation-message {
color: red;
}
blazor-error-ui {
}
I haven't changed the code...
Hi @929Free ,
Based on your description, I create a new Blazor WebAssembly application using VS 2019, the menu icons are displayed like this:
If using F12 developer tools to check the Network or in the Console panel, is there any error?
In my sample, in the Network panel, the resource load success, and there is no error in the console panel:
and in the NavMenu.razor component it add the icon class:
Best regards,
Dillion
thanks, I generated it successfully on win10 and vs 2022, I speculate that it may be the problem of win7 system.
Sign in to comment