CSS實現自適應斜角水平導覽功能表

來源:互聯網
上載者:User
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>自適應的斜角水平菜單</title><style type="text/css">.menu {font-family:Arial;font-size:14px;}.menu a,.menu a:visited {display:block;float:left;position:relative;background-color:#CC0000;color:#FFFFFF;text-decoration:none;padding:6px;margin:1px 0 0 1px;}.menu a .corner {position:absolute;height:0;width:0;overflow:hidden;border-bottom:solid 6px #CC0000;border-left:solid 6px #FFFFFF;top:0;left:0;}.menu a:hover {background-color:#FF9900;color:#333333;}</style></head><body><div class="menu"><a href="#"><span class="corner"></span>Home</a><a href="#"><span class="corner"></span>Connect</a><a href="#"><span class="corner"></span>Web Dev</a><a href="#"><span class="corner"></span>Web Design</a><a href="#"><span class="corner"></span>Map</a></div></body></html>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.