Code Monkey home page Code Monkey logo

czrmobile's Introduction

关于czrmobile

czrmobile是一款嵌入在PC端页面上展示手机网页效果的插件,可以让你在电脑后台上实时看到手机上展示的效果。

image

如何使用czrmobile

● 在需要使用czrmobile的页面引入“js/czrmobile.js”
● 在需要展示的位置添加div并设置id
● 调用插件:
$('#demo').czrMobile({
content:'Hello'
//这里可以继续填写其他参数哦
});

参数

● 主体大小:area:字符串时为宽高一致,可用数组填写宽/高大小[默认宽度350px,高度auto]
● 主体背景:background:color_name/hex_number/rgb_number/transparent[默认无颜色,可填写图片地址]
● 标题内容:title:内容/false不显示[默认false]
● 标题位置:titleSite:center/justify/left/right[默认center]
● 标题背景颜色:titleBackground:color_name/hex_number/rgb_number/transparent[默认灰色]
● 标题字体大小:titleSize:medium/smaller/larger/length/%/inherit[默认12px]
● 任务栏展示:top:true显示/false不显示[默认true]
● 任务栏背景颜色:topBackground:color_name/hex_number/rgb_number/transparent[默认蓝色]
● 任务栏时间:time:true显示/false不显示/字符串则显示字符串信息[默认true]
● 内容:content:内容,支持元素[默认空]
● 内容背景颜色:contentBackground:color_name/hex_number/rgb_number/transparent[默认无颜色,可填写图片地址]
● 导航栏展示:footer:true显示/false不显示[默认true]
● 导航栏背景颜色:footerBackground:color_name/hex_number/rgb_number/transparent[默认黑色]
● 导航栏菜单按钮事件:footerMenu:办法[默认无][事件仅最后一个模拟页有效]
● 导航栏首页按钮事件:footerHome:办法[默认首页][事件最后一个模拟页有效]
● 导航栏返回按钮事件:footerBack:办法[默认真实网页返回上一页][事件仅最后一个模拟页有效]

czrmobile's People

Contributors

caixingyue avatar

Watchers

James Cloos 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.