Giter VIP home page Giter VIP logo

adaptivemobiledevice's Introduction

#H5端使用viewport缩放设置解决图片发虚问题# 使用本插件演示网址:http://at4321.com/case/web/adaptiveMobileDevice
未使用本插件演示网址:http://at4321.com/case/web/adaptiveMobileDevice/noAdaptive.html
请使用手机打开查看效果 ##解决问题## 1.图片发虚问题解决
2.1px问题解决 ##兼容性问题## 兼容移动端浏览器,(暂时发现所有移动端都支持devicePixelRatio,如果亲们发现有问题,请告诉我,谢谢。) ##注意事项## 1.使用REM为大小的单位。
2.HTML根字体大小默认为10,如果更改,请修改HTML代码里(这里以20px为例)<html>为<html style="font-size:20px">
3.图片不用设置大小,如担心图片撑出滚动条,CSS里设置图片的max-width:100%
4.使用方法:页面中直接嵌入以下代码<script src="js/adaptiveDPR.min.js"></script>

adaptivemobiledevice's People

Watchers

 avatar

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.