div: width---300px, height---300px, border---50px, padding---50px, margin---50px
The actual width is: 300( width) 50(padding-left) 50(padding-right) 50(border-left) 50(border-right) 50(margin-left) 50(margin-right);
Actual height: 300( height) 50(padding-top) 50(padding-bottom) 50(border-top) 50(border-bottom) 50(margin-top) 50(margin-bottom);
The text part is width* height, the blue part outside the text part is padding, the red part is border, and the margin part is not shown in the picture.
Code for the above example:
How much area does the box actually occupy< /title>
He won a grand prize of 5 million yuan by betting on the Shuangseqiu numbers through WeChat. After the lottery was drawn, he was told that the bet failed and a refund had been made. This was the painful experience of Mr. Li, a Guangzhou citizen, recently. In recent years, websites and mobile phone clients for lottery betting have sprung up, attracting many citizens to buy them. However, is it reliable to buy lottery tickets online? Can you really get money if you win the jackpot? In this regard, the person in charge of the Guangdong Provincial Welfare Lottery Center was interviewed by reporters. It said that no unit has yet been approved to carry out the Internet sales business of welfare lottery tickets. Currently, all online sales of welfare lottery tickets are illegal. Lottery players must not participate in betting to avoid property losses.