GithubHelp home page GithubHelp logo

Icon 图标,如果是图片内容时,size 还是会转换为 font-Size 样式,此处应该是 width 及 height 等。 about nutui-uniapp HOT 3 CLOSED

zoujingli avatar zoujingli commented on June 11, 2024
Icon 图标,如果是图片内容时,size 还是会转换为 font-Size 样式,此处应该是 width 及 height 等。

from nutui-uniapp.

Comments (3)

yang1206 avatar yang1206 commented on June 11, 2024

使用图片时请使用width和height属性

from nutui-uniapp.

zoujingli avatar zoujingli commented on June 11, 2024

文档中可以更新下吗?图片使用 width 及 height,字体时使用 size

from nutui-uniapp.

zoujingli avatar zoujingli commented on June 11, 2024
<template>
  <nut-icon name="dongdong"></nut-icon>
  <nut-icon name="JD"></nut-icon>
  <nut-icon size="40"  name="https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png"></nut-icon>
</template>

文档中图片也是使用 size 设置大小 😂

from nutui-uniapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.