Home > Web Front-end > Vue.js > body text

How to add logo to vue

藏色散人
Release: 2021-11-02 15:11:54
Original
5250 people have browsed it

How to add logo to vue: 1. Create a new img folder in the root directory of the vue project; 2. Pass "" method to add the logo.

How to add logo to vue

The operating environment of this article: windows7 system, vue2.9.6 version, DELL G3 computer.

How to add logo to vue?

Add a web page logo to the vue project:

1. Preface

Adding a web page to the vue project is very simple. Achieve the effect: one picture and one line of code.

2. Text

This project is based on ElementUI’s element-starter to provide a better demonstration.

1. Code

How to add logo to vue

  • Add the following logo

How to add logo to vue

  • Added the following code

<link>
Copy after login

Note that in the root directory of the project, create a new folder such as img, and obtain the logo image from it. Don't get it in assets!

nbsp;html>    
    
<link>    
Lin Hongcun

Copy after login

2. Effect

How to add logo to vue

3. All code

The code is placed on GitHub: https://github.com/larger5 /web-logo

3. Ending

It is originally a simple matter, but the way it is done on the Internet is too lengthy, so I write this article.

Recommended learning: "The latest 5 vue.js video tutorial selections"

The above is the detailed content of How to add logo to vue. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
vue
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!