html5 webworks,viewport - HTML5/WebWorks for PlayBook - BlackBerry Developer

The viewport meta tag defines a set of properties that specify the

behavior and initial appearance of the web page when it is displayed in the browser

window.

The directive specified by this meta tag is a list of one or more properties, specified within

a comma-separated list. All properties are optional; for any properties that are not

defined, the BlackBerry Browser

infers a value based on the default browser behavior. For example:

The BlackBerry Browser supports the following viewport

properties.

Directive properties

Description

Availability

width

Specifies the width of the viewport, in pixels. This property

also accepts a value of device-width constant,

which enables the browser to define the viewport width based on

the available screen width.

4.6+

height

Specifies the height of the viewport, in pixels. This property

also accepts a value of device-height constant,

which enables the browser to define the viewport height based on

the available screen height.

In practice, this property is typically unnecessary; the browser

automatically defines the height based on the vertical space

required to compose the layout of the content.

6.0+

initial-scale

Specifies the scale at which the browser initially renders the

viewport. The value is defined as a multiplier. A value of 2.0

means that the viewport is doubled in size and rendered at a

scale of 200%.

6.0+

maximum-scale

Specifies the maximum scale value for the viewport. The value is

defined as a multiplier.

6.0+

minimum-scale

Specifies the minimum scale value for the viewport. The value is

defined as a multiplier.

6.0+

user-scalable

Specifies whether the user can adjust the scale of the viewport.

The value can be yes or no. A

value of yes permits user scaling; a value of

no prevents user scaling.

6.0+

target-densitydpi

Specifies the target pixel density for which the web page is

designed. This property can have one of the following values:

device-dpi: Specifies that the

device's native pixel density should be used as the

target dpi. The browser renders the content without

scaling it.

high-dpi: Specifies that the

content is intended for high-density screens. The

browser scales down the content for lower-density

screens as necessary.

medium-dpi: Specifies that the

content is intended for medium-density screens. The

browser scales the content up for high density screens

scale up. There are no BlackBerry devices that support the

target-densitydpi directive that

have low density screens.

low-dpi: Specifies that the

content is intended for low-density screens. The browser

scales the content up for higher density screens as

necessary.

dpi-value:

Specifies a dpi value between 70 and 400 to use as the

target dpi.

7.0+

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值