2012-06-04 79 views
1

我爲Blackberry創建了一個HTML頁面。我已經完成所有權利,但無法使用觸控板滾動任何分部。Blackberry Scroll問題

我在黑莓黑體測試這個。

這裏是我的代碼:

<!DOCTYPE HTML> 
<html> 
<head> 
<meta name="HandheldFriendly" content="True" /> 
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
<meta name="viewport" content="width=device-width,height=device-height,target- densitydpi=device-dpi,user-scalable=no,initial-scale=1.0"> 
<title>XXXX</title> 
</head> 
<body class="Claimtype"> 
<div class="mainwrapper"> 
<header> 
<h1>Claim Type<span></span></h1> 
</header> 
<article> 
<div class="claimtype_content"> 
    <div class="claim_summary"> 
    <h3> 
     <label>Plan No:</label> 
     183245</h3> 
    <h4>Health Spending account</h4> 
    <h4>Health Spending account</h4> 
    </div> 
    <div class="claim_type_selection"> 
    <h3>Type of Claim</h3> 
    <select name="claim_type_selection"> 
     <option>Select</option> 
     <option>Select2</option> 
     <option>Select3</option> 
     <option>Select4</option> 
     <option>Select5</option> 
    </select> 
    <div class="claimtype_desc"> 
     <div class="claimdescimg"> 
      <img src="inputUser.png" width="50" height="50"> 
     </div> 
     <div class="claimtype_desctxt"> 
     <h3>Dental</h3> 
      <p>The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation. The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation. The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation.</p> 
     </div> 
    </div> 
    </div> 
</div> 
</article> 
</div> 
</body> 
</html> 

在這裏我要滾動,我還增加了溢出的風格「claimtype_desctxt」文本。

任何人都可以幫忙嗎?你需要知道

回答

0

一切總結如下:

Using focus-based navigation

一號通在配置文件中指定導航模式:

<widget> 
    <rim:navigation mode=�focus�/> 
    <feature id="blackberry.ui.dialog" /> 
</widget> 

2階定義可聚焦元素,這裏的例子:

<img id="image1" src="imageb.png" x-blackberry-focusable="true" /> 

你可以al所以定義最初的重點:

<a class="list" x-blackberry-initialFocus="true">First element</a> 

這裏是一個JavaScript函數,改變焦點對象的高亮風格完整的示例代碼:

<html> 
<head> 

    <title>Color Input Type</title> 
    <script type="text/javascript"> 
     function highlight(e) { 
     e.setAttribute("style", "background-color: red; outline: cyan solid thick;"); 
     } 

     function unhighlight(e) { 
     e.setAttribute("style", ""); 
     } 
    </script> 
</head> 

<body>  
    <h2>Test input type - text/password/email/search/tel/number</h2> 
     <div> 
     <label >Text: </label> 
     <input type="text" x-blackberry-focusable="true" onmouseover="highlight(this);" 
      onmouseout="unhighlight(this);" /> 
     </div> 
     <div> 
     <label>Number: </label> 
     <input type="number" x-blackberry-focusable="true" onmouseover="highlight(this);" 
      onmouseout="unhighlight(this);" /> 
     </div> 
</body> 
</html> 

我希望這有助於

+0

答案真的應該包含一些實際內容,而不僅僅是其他鏈接:http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers –

+0

你現在快樂嗎? – saada

+0

其HTML5 Webworks方法...我沒有使用Webworks .. –