我只有一个简单的.shtml页面:
<html>
<head>
<meta charset='utf-8'>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link href="Stylesheets/main.css" rel="stylesheet">
<link href="Stylesheets/glicons.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<title>
Codepixl
</title>
</head>
<body>
<!--#include file="nav.html"-->
asdsd
<div id="Scripts">
<script src="http://code.jquery.com/jquery-latest.js"></script> <script src="Scripts/jquery.cookie.js"></script> <script src="Scripts/jquery-ui.min.js"></script> <script src="scripts/typed.js"></script> <script src="//codepixl.net/scripts/secret.js"></script>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
和样式表:
body{
background-color: #32CD32;
}
.loader {
position: fixed;
top: 50%;
left: 50%;
margin-top: -115px;
margin-left: -115px;
z-index: 9999;
}
Run Code Online (Sandbox Code Playgroud)
但背景颜色没有出现?我尝试过使用html,body {}并使用doctype但没有任何效果!发生了什么?
编辑:我删除了bootstrap,它开始工作......还在这里的页面:http://codepixl.net/indesx.shtml
编辑:我只需要在样式表之前放置引导程序-_-
所以我想做的就是做点什么
scene.forEachMeshInScene(function(mesh){
//And here I can do stuff
});
Run Code Online (Sandbox Code Playgroud)
但遗憾的是,这不存在.我怎么能这样做?
我正在使用 CoreBluetooth 框架制作一个应用程序,最近我将它移植到了 swift 2.0。在我的代码中,我有一个 CBCharacteristic 的全局变量,在 swift 1.2 中我可以这样做:
var bob:CBCharacteristic = CBCharacteristic()
Run Code Online (Sandbox Code Playgroud)
但是现在它给我的错误是 CBCharacteristic 的 init() 函数已被显式隐藏,因此我无法对其进行初始化。有没有办法解决这个问题?
好的,所以这里是我的代码片段,其中包含问题:
private JTextField userText;
private ObjectOutputStream output;
private ObjectInputStream input;
private ServerSocket server;
private Socket connection;
private JTextPane images;
private JScrollPane jsp = new JScrollPane(images);
public Server(){
super(name+" - IM Server");
images = new JTextPane();
images.setContentType( "text/html" );
HTMLDocument doc = (HTMLDocument)images.getDocument();
userText = new JTextField();
userText.setEditable(false);
userText.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent event){
sendMessage(event.getActionCommand());
userText.setText("");
}
}
);
add(userText, BorderLayout.NORTH);
add(jsp);
add(images, BorderLayout.CENTER);
images.setEditable(false);
try {
doc.insertString(0, "This is where images and text will show up.\nTo send an image, …Run Code Online (Sandbox Code Playgroud)