In my application, I use the express framework for working with files on the client side. But when providing a background image for an html element. It indicates that the specified URL could not be loaded.
var express = require('express') , http = require('http'); var app = express(); app.configure(function(){ app.use(express.static(__dirname + '/public')); }); var server = http.createServer(app); var io = require('socket.io').listen(server); server.listen(8000);
In the shared folder, I created javascripts, stylesheets, images folder.Now, I get javascripts and stylesheets. But I do not know how to access the image file.
.logo { background:url('localhost:8080\logo.jpg');//This image url not loading float:left; width:20px height:20px; }
sachin
source share