In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to write shadow code in css3". In daily operation, I believe many people have doubts about how to write shadow code in css3. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to write shadow code in css3"! Next, please follow the small series to learn together!
Writing: 1. Element object {box-shadow: horizontal shadow vertical shadow blur distance shadow size color inset;}, used to add shadow to element box;2. Text object {text-shadow: horizontal shadow vertical shadow blur distance color;}, used to add shadow to text element.
Operating environment of this tutorial: Windows 7 system, CSS3 && HTML5 version, Dell G3 computer.
How to write shadow code in CSS3
Text can be shaded in css via the text-shadow attribute. Add one or more shadows to the box via the box-shadow attribute.
The syntax for the text-shadow attribute is:
text-shadow: h-shadow v-shadow blur color;
The syntax for the box-shadow attribute is:
box-shadow: h-shadow v-shadow blur spread color inset;
Let's take a look at the following examples:
div{ width:300px; height:100px; background-color:#ff9900; box-shadow: 10px 10px 5px #888888; } h2{ text-shadow: 5px 5px 5px #FF0000; } Text Shadow Effect!
Output:
At this point, on the "css3 shadow code how to write" the end of the study, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.