In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today Xiaobian to share with you how to use the CSS margin-bottom attribute related knowledge points, detailed content, clear logic, I believe most people still know too much about this knowledge, so share this article for everyone to refer to, I hope you read this article after harvest, let's learn about it together.
CSS margin-bottom property
defined
The margin-bottom property sets the lower margin of the element.
Note: Negative values are allowed.
Inheritance: NO
JavaScript syntax
CSS properties can also be changed dynamically via a JavaScript snippet.
Script syntax:
object.style.marginBottom="32px" Example All four margins are 10px:
h2{ margin-bottom:10px; } h2{ margin-bottom:-20px; }
Top and bottom margins are 10px, left and right margins are 2% of parent width:
h2{margin:10px2%;} Top margin is 10px, left and right margins are 2% of parent width, bottom margin is-10px:
h2{margin:10px2%-10px;} Top margin is 10px, right margin is 2% of parent width, bottom margin is-10px, and left margin is set by browser:
h2{margin:10px2%-10pxauto;}
possible values
The above is "CSS margin-bottom attribute how to use" all the content of this article, thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to 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.