返回列表 發帖

[html] 了解The Box Model 有什麼作用?

請問Margin, Border, Padding 和 Content 之間是什麼關係?

在寫網頁時,分開這呢個類型來作Positioning 有什麼作用?

謝謝!


圖片出處:http://www.w3schools.com/css/css_boxmodel.asp

假設在網頁中以一個element來看,
border就是這個element的框線,
而border以外就是margin,
以內就是padding,

我們簡單來說有一個鋁箔包飲料,
裡面的果汁就是Content(element內的內容),
Margin就是飲料的外包裝塑膠厚度,
border就是飲料的紙部的厚度,
padding就是飲料內部的鋁箔的厚度.

至於學這個可以做甚麼,
一般會在學CSS的時候用到,
通常是用來定義排版內容,
一步一步來,
你要先了解html的element的功用,
再來學CSS跟你發問的這個問題.

你可以參考w3c school這裡的操作,
http://www.w3schools.com/css/try ... ycss_boxmodel_width

TOP

. Since its establishment as a new monarchy in 1921

manhattan judge wants criminal case in kazakhstan dropped against its president's sister
The nation of Iraq was artificially created out of three former Ottoman provinces with wildly disparate ethnic and religious identities (Gelvin, 183). Since its establishment as a new monarchy in 1921, Iraq has been "notorious for its political stability" (Gelvin, 184). The Shiite majority of the country was, until very recently, ruled over by a Sunni minority.
Today's modern educated Indian woman living in a metropolis is not unlike one you would find in New York City. She can tell the difference between Chanel and Louis Vuitton. She gets her coffee from Starbucks and clothes from Zara. On the phone from home in Toronto, she laughs like hell, as she is wont to do, "The record company got really (mad), 'are you insane?!' You know what? You try going through your whole career, 'appearing tonight: Ass Jordan!' Thing is, I'd do the same thing. If I saw a marquee with that name on it, I would ?tid=121141 so love taking the first 'S' off of it. It's funny.
While it may be unpleasant, the post vacation blues can be overcome with a little determination and a focus on accepting what the vacation gave you and how valuable your everyday life is. Some vacationers don't have a problem easing back into their everyday routines following a long and pleasurable trip, but many others do, and it isn't uncommon. Time expands when we travel or experience new things and our sense of freedom from the usual constraints of routine, daily chores and deadlines is immense.
The former host of A "Biography," once famously parodied by "Saturday Night Live's" Darrell Hammond, is a Sarasota resident. The 77 year old anchorman, narrator and award winning journalist currently hosts "A Gulf Coast Journal," a weekly magazine show that airs on WEDU TV in Tampa. Perkins is also an amateur photographer and poet, and recently compiled a book  titled, "Island Prayers: Photographs and Poems of Praise.".
You will have waitresses treat you like a slow schoolchild when you don't immediately grasp that the coal like lumps in a crab dish are pickled pioppini mushrooms rolled in coal ash. You will end your meal with roasted carrots in wildflower syrup, or maybe a chocolate namelaka that looks more like grilled meat in pesto sauce than like anything you'd have as dessert. There has always been something a little punk rock about Red Medicine, but it has become hard to imagine the Los Angeles restaurant scene without it..
相关的主题文章:

  
   ?tid=95205&page=e&#a
  
   ?uid=32055&do=blog&id=57599
  
   ?tid=939181&pid=1204307&page=2&extra=page%3D1#pid1204307
  
   ?tid=414261&page=e&#a
  
   ?tid=111873&page=e&#a
  
   ?tid=1&pid=287753&page=195&extra=page%3D1#pid287753
  
   ?tid=809000&page=e&#a
  
   ?tid=80640&ds=1&page=e#a]

TOP

返回列表

戰略要地重大資訊 關閉


關於要地的異常

將軍正在進行修復, 短期間請大家多多包涵. 主要是要修復一些被修改的設定, 也請大家不要驚慌.


查看