CSS没有出现在黑莓网络上

时间:2014-01-02 00:55:07

标签: javascript html5 css3 blackberry blackberry-webworks

我正在测试黑莓网络,我完成了黑莓网站上提到的所有步骤。但是在我的模拟器上,没有css显示出来。我已经安装了所有的nessecary东西,因为整个应用程序都有效。没有css。提前感谢任何可以提供帮助的人。

<!Doctype html>
<html>
<head>
<title>jstest</title>
<style type="text/css">
#text{
    border-width: 0px;
    width: 100px;
}

#button{
background-color: #ccc;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius:6px;
    color: #fff;
    font-family: 'Oswald';
    font-size: 20px;
    text-decoration: none;
    cursor: poiner;
    border:none;}

</style>
</head>
<body>
<form name="form"id="form">
<input type="button" id="button" value="click" onclick="thing()" />
<input type="text" id="text" />
</form>
<script>
    var button = document.getElementById("button");
    var div = document.getElementById("box");
    var text = document.getElementById("text");
    var form = document.getElementById("form");
    var array=[ "thanks for clicking", "keep on clicking", "click one more time", "why do you keep on clicking me?", "stop clicking me!","one more time... I dare you", "Stop it it hurts"];
function thing(){
    var y = array[Math.floor((Math.random() * array.length))];
    text.value=y;
}

function what(){
    text.value = "what";    
}
</script>
</body>

0 个答案:

没有答案