简体   繁体   English

图像尺寸,移动设备的样式表

[英]images sizes, style sheet for mobile devices

i am developing app using worklight that needs to fit in for all mobile devices iphone and android. 我正在使用需要适合所有移动设备iphone和android的工作灯开发应用程序。 I am using jquery mobile, css3, html5. 我正在使用jquery mobile,css3,html5。 But when i add header and buttons in header.. they do not resize to mobile height and width(for eg: galaxy s2). 但是当我在标题中添加标题和按钮时..它们不会调整为移动高度和宽度(例如:galaxy s2)。 either they are large or too small. 它们太大或太小。 can anyone pls suggest how i should approach to create a better stylesheet... 任何人都可以建议我应该如何创建更好的样式表...

Below is the code: 下面是代码:

<div data-role="header">
    <div style="float:left;width:30%">
        <a data-rel="back" href="" data-role="button" data-theme="none">
            <img class="imgback" src="images/Header_left_btn.PNG" />
        </a>
    </div>

    <div style="float:left;width:40%">
        <img src="images/headerText_Lock_icon.PNG" />
    </div>

    <div style="float:left;width:30%">
        <img src="images/logo.PNG" />
    </div>

</div>

Worklight provides a full tutorial which describes supporting multiple form factors using Worklight skins. Worklight提供了完整的教程,其中描述了使用Worklight外观支持多种尺寸的因素。 This presentation includes a full tutorial covering what skins are, how skins work as well as an exercise to test what you have learned. 此演示文稿包括完整的教程,涵盖了什么是皮肤,皮肤如何工作以及测试您所学知识的练习。 The presentation can be found at the following location: 该演示文稿可以在以下位置找到:

Using Worklight Skins Presentation: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/05_03_Supporting_multiple_form_factors_using_Worklight_skins.pdf 使用Worklight外观演示: http : //public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/05_03_Supporting_multiple_form_factors_using_Worklight_skins.pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM