W3C¶ÔÓÚCSS¼°ä¯ÀÀÆ÷Ö®¼äµÄ¼æÈÝÐÔÎÊÌâ½â¾ö·½°¸
ÎÄÕÂÀ´×Ô£ºhttp://mayer.vokaa.com/archives/16
¶ÔÓÚÒ»¸öÇ°¶Ë¹¤×÷Õߣ¬¶¼ÖªµÀ·ûºÏW3C¹æ·¶¶ÔÓÚÍøÒ³µÄ¿çä¯ÀÀÆ÷¹¤×÷´øÀ´ºÃ´¦£¬²¢ÄÜʹÍøÒ³ÔÚ²»Í¬µÄä¯ÀÀÆ÷Ö®¼ä»¥Ïà¼æÈÝ¡£
ÔÚÕâÀïÎÒÃÇÒ»Ò»Áоٻ¥ÁªÍøÉÏËùÌṩµÄ½â¾ö°ì·¨¼°Ò»Ð©ÎÒ¸öÈ˵Ľ¨Ò鼰ʵ¼ù°¸Àý¡£
Æäʵ£¬ÏÖÔÚ¶àÊýÈ˶¼»áʹÓÃHackµÄ·½·¨½â¾ö£¬µ«Èç¹ûDIVºÍCSSµÄ½á¹¹ÇåÎú¡¢ºÏÀí£¬¿ÉÄÜÎÒÃǸù±¾²»ÐèÒªÕâЩHack¡£
Ò»¡¢DOCTYPE ¶ÔCSS´¦ÀíËù´øÀ´µÄÓ°Ïì
Ñϸñģʽ£¨strict£©µÄHTML 1.0 ¹æ·¶£¬Ê¹ÓÃʱä¯ÀÀÆ÷½«Ïà¶ÔÑϸñ£¬²»ÔÊÐíʹÓÃÈκαíÏÖÐÎʽµÄ±êʶºÍÊôÐÔ£¬ÈçÔÚÔªËØÖÐÖ±½ÓʹÓÃbgcolor±³¾°É«ÊôÐԵȡ£
1
<!doctype html public "-/w3c/dtd xhtml 1.0 strict/en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
¹ý¶Èģʽ£¨transitional£©µÄHTML 1.0 ¹æ·¶£¬ÊÇÖ¸Ò»ÖÖ¹ý¶ÉÀàÐÍ£¬Ê¹ÓÃÕâÖÖÀàÐÍä¯ÀÀÆ÷¶ÔXHTMLµÄ½âÎö±È½Ï¿íËÉ£¬ÔÊÐíʹÓÃHTML4.01ÖеıêÇ©£¬µ«±ØÐë·ûºÏXHTMLµÄÓï·¨¡£
1
<!doctype html public "-/w3c/dtd xhtml 1.0 transitional/en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
¿ò¼Üģʽ£¨Frameset£©µÄHTML 1.0 ¹æ·¶£¬ÊÇÖ¸Ò»ÖÖ¹ý¶ÉÀàÐÍ£¬¿ò¼ÜÒ³ÀàÐÍ£¬Èç¹ûÍøҳʹÓÃÁË¿ò¼Ü½á¹¹£¬¾ÍÓбØҪʹÓÃÕâÑùµÄÎĵµÉùÃ÷¡£
1
<!doctype html public "-/w3c/dtd xhtml 1.0 frameset/en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd">
¶þ¡¢ÉùÃ÷ÓÐЧµÄÎĵµÓïÑÔ
XHTMLÎĵµÊ¹ÓÃÓ¢ÎÄʱ£º
1
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
XHTMLÎĵµÊ¹ÓÃÖÐÎÄʱ£º
1
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">
XHTMLÎĵµÊ¹Ó÷±Ìåʱ£º
1
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-HK">
Èý¡¢DIV¾ÓÖÐÎÊÌâ
ʹÓÃÏÂÁдúÂ룬ÔÚIEºÍFFÏ£¬DIV¶¼ÄÜÓÐЧ¾ÓÖС£
1
.warp{margin: 0px auto;}
Îå¡¢ÔÚFFÏÂÉèÖà padding »ò margin ºó£¬div»áÔö¼Ó height ºÍ width£¬µ« IE ²»»á¡£
ÔÚCSSÎļþÍ·²¿È«¾ÖÇå¿ÕmarginºÍpaddingµÄÖµ£¬±£Ö¤ËùÓÐä¯ÀÀÆ÷϶¼Îª0px¼´¿É¡£
1
* { margin:0; padding:0; }
Áù¡¢ÒÔÏÂÌá
Ïà¹ØÎĵµ£º
1.ÇóÏÂÃ溯ÊýµÄ·µ»ØÖµ£¨ ΢Èí£©
int func(x)
{
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
  ......
Class.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="class.css"?>
<bookdetail>
<book class="A">
<author>²ÜÑ©ÇÛ</author>
<title>ºìÂ¥ÃÎ</title>
<price>60.00</price>
</book>
<book class="A"& ......
ID.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="ID.css"?>
<bookdetail>
<book class="A" id="B1">
<author>²ÜÑ©ÇÛ</author>
<title>ºìÂ¥ÃÎ</title>
<price>60.00</price>
</book>
<book class="A ......
In C++, how do i go about using setenv to set the display? I need to set it like this:
export DISPLAY=0.0
1¡¢setenv("DISPLAY",":0.1",1);
If you're calling the xrandr functions from your C++ program, then I would expect setenv() should work for you. The 3rd argument of 1 tells setenv() to ov ......
Block element ¿é¼¶ÔªËØ
¹ËÃû˼Òå¾ÍÊÇÒÔ¿éÏÔʾµÄÔªËØ£¬¸ß¶È¿í¶È¶¼ÊÇ¿ÉÒÔÉèÖõġ£±ÈÈçÎÒÃdz£ÓõÄ<div>¡¢<p>¡¢<ul>ĬÈÏ״̬϶¼ÊÇÊôÓڿ鼶ԪËØ¡£¿é¼¶ÔªËرȽϰԵÀ£¬Ä¬ÈÏ״̬ÏÂÿ´Î¶¼Õ¼¾ÝÒ»Õû¸öÐУ¬ºóÃæµÄÄÚÈÝÒ²±ØÐëÔÙÐÂÆðÒ»ÐÐÏÔʾ¡£µ±È»·Ç¿é¼¶ÔªËØÒ²¿ÉÒÔͨ¹ýcssµÄdisplay:block;½«Æä¸ü¸Ä³É¿é¼¶ÔªËØ¡£´ËÍâ» ......