In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you about the use of HTML DOM margin attributes, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Let's take a look at it with the editor.
To describe the use of the HTML DOM margin attribute, the margin attribute in Html is mainly used to set the outer margin of the element.
HTML DOM margin attribute
Definition and usage
The margin property sets the outer margin of the element.
This property can use 1 to 4 values:
If you specify a value, such as div {margin:50px}-all outer margins are 50px
If you specify two values, such as div {margin:50px10px}-the upper and lower margin is 50px, and the left and right margin is 10px.
If you specify three values, such as div {margin:50px10px20px}-the top margin is 50px, the left and right margin is 10px, and the bottom margin is 20px.
If you specify four values, such as div {margin:50px10px20px30px}-the top margin is 50px, the right margin is 10px, the bottom margin is 20px, and the left margin is 30px.
Syntax:
Object.style.margin=margin
Possible values:
Example
The following example changes the margin of a paragraph:
FunctionchangeMargin () {document.getElementById ("p1") .style.margin = "100px";} script > head > Thisisaparagraphp > body > html > the above is how to use the HTML DOM margin attribute. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.