Styles in uni-app
uni-app supports the use of font icons. The usage is the same as that of ordinary web projects. Please note the following points :
<template> <view> <view> Style Learning </view> <view class="box1"> Test text <text>123</text> </view> <view class="iconfont icon-shipin"> </view> </view> </template> <script> </script> <style lang="scss"> @import url("./a.css"); // Imported external CSS file .box1{ width: 350rpx; //rpx can be used not only for boxes but also for text height: 350rpx; background: red; font-size: 50rpx; color: #FFFFFF; text{ color: pink; } } </style> Define common global styles in App.vue <style> /*Common CSS for each page */ //Global style will be overwritten by local style @import url("./static/fonts/iconfont.css"); .box1{ background: pink; } </style> SummarizeThis article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM! You may also be interested in:
|
<<: Introduction to the use of html base tag target=_parent
>>: Solution to the problem of z-index not taking effect in CSS3
First, let's take a look at the relative leng...
Introduction The Docker community has created man...
Recently, I found that after using the docker loa...
Cell padding is the distance between the cell con...
Back in the Kernel 2.6 era, a new security system...
Table of contents plan Install Dependencies Intro...
Table of contents 1. Background 2. Operation step...
2.1 Semanticization makes your web pages better u...
Table of contents 1. isPrototypeOf() Example 1, O...
Let’s not waste any more time and get straight to...
1. Try to use single column instead of multi-colum...
Use CSS3 to achieve cool radar scanning pictures:...
Rendering pipeline with external css files In the...
In general, MySQL provides a variety of storage e...
The DIV floating effect (fixed position) is imple...