2010年9月25日星期六

When Barack Obama entered the Oval Office

So you've got a web page. You’ve marked it up with structural XHTML. You’ve also been a good little web developer and used style sheets to control what your document looks like. You’ve even gone the extra mile and created several alternative style sheets to show how hardcore you are.

Great. But now you need a cross-browser way to dynamically switch between the style sheets.

Styling your site
Style sheets can be associated with documents using a list of link elements in the head. There are three different relationships external style sheets can have with the document: persistent, preferred, and alternate.

Persistent
These style sheets are always enabled (they are always “on”) and are combined with the active style sheet. They can be used for shared rules common to every style sheet. To make a style sheet persistent, the rel attribute is set to “stylesheet” and no title attribute is set.

To make the style sheet paul.css persistent, the following link element would be included in the head:

The next morning, McChrystal and his team gather to prepare for a speech he is giving at the École Militaire, a French military academy. The general prides himself on being sharper and ballsier than anyone else, but his brashness comes with a price: Although McChrystal has been in charge of the war for only a year, in that short time he has managed to piss off almost everyone with a stake in the conflict. Last fall, during the question-and-answer session following a speech he gave in London, McChrystal dismissed the counterterrorism strategy being advocated by Vice President Joe Biden as "shortsighted," saying it would lead to a state of "Chaos-istan." The remarks earned him a smackdown from the president himself, who summoned the general to a terse private meeting aboard Air Force One. The message to McChrystal seemed clear: Shut the fuck up, and keep a lower profile

Now, flipping through printout cards of his speech in Paris, McChrystal wonders aloud what Biden question he might get today, and how he should respond. "I never know what's going to pop out until I'm up there, that's the problem," he says. Then, unable to help themselves, he and his staff imagine the general dismissing the vice president with a good one-liner.

"Are you asking about Vice President Biden?" McChrystal says with a laugh. "Who's that?"

"Biden?" suggests a top adviser. "Did you say: Bite Me?"

When Barack Obama entered the Oval Office, he immediately set out to deliver on his most important campaign promise on foreign policy: to refocus the war in Afghanistan on what led us to invade in the first place. "I want the American people to understand," he announced in March 2009. "We have a clear and focused goal: to disrupt, dismantle and defeat Al Qaeda in Pakistan and Afghanistan." He ordered another 21,000 troops to Kabul, the largest increase since the war began in 2001. Taking the advice of both the Pentagon and the Joint Chiefs of Staff, he also fired Gen. David McKiernan – then the U.S. and NATO commander in Afghanistan – and replaced him with a man he didn't know and had met only briefly: Gen. Stanley McChrystal. It was the first time a top general had been relieved from duty during wartime in more than 50 years, since Harry Truman fired Gen. Douglas MacArthur at the height of the Korean War.

没有评论:

发表评论