您的位置:首页 > 移动开发 > Unity3D

【Unity3D自学记录】UnityWebPlayer网页全屏模式代码

2014-05-30 15:45 316 查看
<style type="text/css">
<!--
*{ margin:0; padding:0;}

html, body {
width: 100%;
height: 100%;
overflow: hidden;
padding: 0px;
margin: 0px;
border: none;
text-align:none;
}
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: white;
color: black;
text-align: center;
height: 100%;
width: 100%;

}
a:link, a:visited {
color: #000;
}
a:active, a:hover {
color: #666;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
border-width: 0px;
border-color: none;
margin: auto;
width: 100%;
height: 100%;
border-color: none
}
div.broken,
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 193px;
}
div.broken a,
div.missing a {
margin: auto;
position: relative;
top: -31px;
}
div.broken img,
div.missing img {
border-width: 0px;
}
div.broken {
display: none;
}
div#unityPlayer {
cursor: default;
height: 100%;
width: 100%;
border-color:none;

}
-->
</style>

var config = {
width: '100%',
height: '100%',
params: { enableDebugging:"0" ,baseDownloadUrl: "http://wp-china.unity3d.com/download_webplayer-3.x/",
autoupdateURL : "http://wp-china.unity3d.com/autodownload_webplugin-3.x",
autoupdateURLSignature : "02a5f78b3066d7d31fb063186a2eec36fdf1205d49c6b0808eb37ef85ed9902e2e1904d87f599238a802ba0abbfe4f18aa82dd2eb5171e99ba839a5cea9e6ea9c1be9eae505937b56fe4a5fd254cffe08958d961f42d970136b5eab9e6c2cd08b81bc8a11e5ade57dc63dcfef2248d89689e4d4feed3cdfe7374c848fd57ebd4" ,disableContextMenu: true}

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  unity3d