473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

@import

I've seen this include at several sites.

Is this documented somewhere?

Briefly - how does it work?

Thanks.
Jun 27 '08 #1
4 1506
gi*******************@yahoo.com wrote:
I've seen this include at several sites.
Which include? Do not assume people can read the Subject header.

Which sites? In which context within the code?
Is this documented somewhere?
Maybe, maybe not.
Briefly - how does it work?
I don't know. The `@' prefix is used in Microsoft JScript, followed by the
keywords `cc_on', `debug', `if', `position' aso. Maybe `@import' is just
another one of those.

RTFM, STFW.
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Jun 27 '08 #2
I was checking out the code at wikipedia.com.

Search for anything - like HTML and the source has code like this:

/*]]>*/
</style> <script type="text/javascript" src="/w/index.php?title=-
&amp;action=raw&amp;gen=js&amp;useskin=monobook">< !-- site js --></
script>
<style type="text/css">/*<![CDATA[*/
@import "/w/index.php?
title=MediaWiki:Common.css&usemsgcache=yes&action= raw&ctype=text/
css&smaxage=2678400";
@import "/w/index.php?
title=MediaWiki:Monobook.css&usemsgcache=yes&actio n=raw&ctype=text/
css&smaxage=2678400";
@import "/w/index.php?title=-&action=raw&gen=css&maxage=2678400";
/*]]>*/</style>

Jun 27 '08 #3
gi*******************@yahoo.com wrote:
I was checking out the code at wikipedia.com.

Search for anything - like HTML and the source has code like this:

/*]]>*/
</style> <script type="text/javascript" src="/w/index.php?title=-
&amp;action=raw&amp;gen=js&amp;useskin=monobook">< !-- site js --></
script>
The `script' element ends here.
<style type="text/css">/*<![CDATA[*/
@import "/w/index.php?
title=MediaWiki:Common.css&usemsgcache=yes&action= raw&ctype=text/
css&smaxage=2678400";
@import "/w/index.php?
title=MediaWiki:Monobook.css&usemsgcache=yes&actio n=raw&ctype=text/
css&smaxage=2678400";
@import "/w/index.php?title=-&action=raw&gen=css&maxage=2678400";
/*]]>*/</style>
On a closer look you will recognize that the @import declarations are part
of the stylesheet, not of the script. This is specified here:

http://www.w3.org/TR/CSS2/cascade.html#x5
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #4
On Apr 20, 2:33 pm, "gimme_this_gimme_t...@yahoo.com"
<gimme_this_gimme_t...@yahoo.comwrote:
I've seen this include at several sites.

Is this documented somewhere?

Briefly - how does it work?

Thanks.

I just found out about it myself...it's a way for one CSS file to
"dial in" another...in the CSS-module school of thought, you would
have different CSS files linked by one "master" CSS file...makes any
debugging easier, among other reasons....
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stian Søiland | last post by:
all examples performed with: Python 2.3+ (#2, Aug 10 2003, 11:09:33) on linux2 (2, 3, 0, 'final', 1) This is a recursive import:
0
by: Vio | last post by:
Hi, I've been trying to embed (statically) wxPy alongside an embedded py interpreter on a linux/gtk box. At one point, for some reason misc.o linking reported "multiple definitions of...
0
by: John Roth | last post by:
I've found a case where it seems that Python is importing two copies of a module without any reason or indication. It took me a while to verify that this is what is occuring: I had to write a...
5
by: Steve Holden | last post by:
This is even stranger: it makes it if I import the module a second time: import dbimp as dbimp import sys if __name__ == "__main__": dbimp.install() #k = sys.modules.keys() #k.sort() #for...
1
by: mark | last post by:
In Access 2000 and 2002, I have created an import specification to import the fixed-width recordset below into an existing table. I am having strange problems with the import of the date and time...
4
by: Bruce W. Roeser | last post by:
All, I'm reading a book by Charles Petzold (Programming VS.Net). Pretty good content but am confused about the difference. From the text: ...
2
by: Jon | last post by:
It appears that (windows) python searches in the current working directory before looking in the local site-packages directory, or that '.' comes first in sys.path? The problem arises when I made...
7
by: Ron Adam | last post by:
from __future__ import absolute_import Is there a way to check if this is working? I get the same results with or without it. Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win 32 ...
5
by: W. Watson | last post by:
Is there a single source that explains these statements? ------------------------------ from Tkinter import * from Numeric import * import Image import ImageChops import ImageTk import time...
9
by: rsoh.woodhouse | last post by:
Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintained and integrated with...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.