Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to achieve a special one-sided css box effect

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to achieve a special one-sided css box effect, the article introduces in great detail, has a certain reference value, interested friends must read it!

This is the html section:

Someexampletext

CSS code

# beauty-boxes {

Transition:all0.5sease

Position:relative

Float:left

Width:45%

Padding:2px

Margin:3px

Background:#fff

-webkit-box-shadow:01px4pxrgba (0re0re0j0re0), 0040pxrgba (0jor0re0re0d0re0) inset

-moz-box-shadow:01px4pxrgba (0re0re0re0rem 0.3), 0040pxrgba (0jorg0re0re0pc0re0) inset

Box-shadow:01px4pxrgba (0rem 0rem 0.3), 0040pxrgba (0je 0rem 0rem 0) inset

-moz-border-radius:4px

Border-radius:4px

}

# beauty-boxes:before

# beauty-boxes:after {

Content: ""

Position:absolute

Z-index:-3

Bottom:15px

Left:12px

Width:50%

Height:20%

Max-width:350px

Max-height:90px

-webkit-box-shadow:015px10pxrgba (0. 0. 0)

-moz-box-shadow:015px10pxrgba (0. 0. 0)

Box-shadow:015px10pxrgba (0. 0. 7)

-webkit-transform:rotate (- 3deg)

-moz-transform:rotate (- 3deg)

-ms-transform:rotate (- 3deg)

-o-transform:rotate (- 3deg)

Transform:rotate (- 3deg)

}

# beauty-boxes:after {

Right:10px

Left:auto

-webkit-transform:rotate (3deg)

-moz-transform:rotate (3deg)

-ms-transform:rotate (3deg)

-o-transform:rotate (3deg)

Transform:rotate (3deg)

}. Beauty-boxesp {

Font-size:16px

Font-weight:bold

}

# beauty-boxes:hover {

Background-color:#161616

Color:#fff

}

The above is all the content of the article "how to achieve a special one-sided css box effect". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report