我正在尝试使用 intel xdk 编写应用程序我需要编辑背景,我尝试stile="background-color:blue"
在正文中添加参数但是当我进入设计选项卡时,如果我返回代码,什么都不会发生(显示标准背景)选项卡,它会删除打开标签,但不会删除关闭标签 end 不会显示任何错误...
一些想法?保存前后都有代码
<!DOCTYPE html>
<html><!--HTML5 doctype-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="Pragma" content="no-cache">
<script type="text/javascript" charset="utf-8" src="intelxdk.js"></script>
<script type="text/javascript" language="javascript">
var isIntel=window.intel&&window.intel.xdk
// This event handler is fired once the intel libraries are ready
function onDeviceReady() {
//hide splash screen now that our app is ready to run
intel.xdk.device.hideSplashScreen();
setTimeout(function () {
$.ui.launch();
}, 50);
}
//initial event handler to detect when intel is ready to roll
document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);
</script>
<script src="js/appframework.ui.min.js"></script>
<script>
if(isIntel)
$.ui.autoLaunch = false;
$.ui.useOSThemes = true; //Change this to false to force a device theme
$.ui.blockPageScroll();
$(document).ready(function () {
if ($.ui.useOSThemes && (!$.os.ios||$.os.ios7))
$("#afui").removeClass("ios");
});
</script>
<link href="css/icons.css" rel="stylesheet" type="text/css">
<link href="css/af.ui.css" rel="stylesheet" type="text/css">
</head>
<div id="afui" class="ios">
<div id="header" class="header"></div>
<div id="content" style="">
<div class="panel" title="Main" id="main" selected="selected" style="" data-appbuilder-object="page"
data-header="header_1">
</div>
</div>
<div id="navbar" class="footer">something on footer
</div>
<header id="header_1" data-appbuilder-object="header"> <a id="backButton" href="#" class="button">Baca</a>
<h1 class="">Custom Title</h1>
</header>
</div>
<body style="background-color:blue">
bla bla bla
</body>
</html>
打开图形选项卡后,它会删除 de body 标签
<header id="header_1" data-appbuilder-object="header"> <a id="backButton" href="#" class="button">Baca</a>
<h1 class="">Custom Title</h1>
</header>
</div>
bla bla bla
</body>
</html>
而且我不能再添加...
对不起,我的英语不好。