Implementation of HTML CSS border shadow_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:33:41
Original
2893 people have browsed it

A tool that uses CSS to control background image tiling to achieve the effect of regional border shadows. Although pictures are used, the valuable thing is that this code does not matter how big the area you need to shadow is. It can automatically adapt, so it is worth collecting, and it is compatible with all IE browsers.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS边框阴影</title><style>.dropshadow2{    float:left;    clear:left;    background: url(/jscss/demoimg/200903/shadowAlpha.png) no-repeat bottom right !important;    background: url(/jscss/demoimg/200903/shadow.gif) no-repeat bottom right;    margin: 10px 0 10px 10px !important;    margin: 10px 0 10px 5px;    width: 360px;    padding: 0px;}.innerbox{    position:relative;    bottom:6px;    right: 6px;    border: 1px solid #999999;    padding:4px;    margin: 0px 0px 0px 0px;}.innerbox{    /* IE5 hack */    margin: 0px 0px -3px 0px;    margin:  0px 0px 0px 0px;}.innerbox p{            font-size:14px;    margin: 3px;}</style></head><body><div class="dropshadow2"><div class="innerbox"><h4>CSS阴影:</h4>  <p>这段边框阴影效果怎么样呢?</p></div></div></body></html>
Copy after login

Rendering

Two pictures required

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template