下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。
内存溢出小编现在分享给大家,也给大家做个参考。
<!DOCTYPE HTML><HTML lang="en-US"><head><Meta http-equiv="Content-Type" content="text/HTML; charset=UTF-8"> <Meta charset="UTF-8"> <Title>CSS3 制作下拉菜单|w3cplus</Title> <Meta name="keywords" content="CSS3学习,CSS3属性详解,CSS3 Transition,如何学好CSS3"> <Meta name="description" content="W3CPLUS是一个前端爱好者的家园,W3CPLUS努力打造最优秀的web 前端学习的站点。W3CPLUS力求原创,以一起学习,一起进步,共同分享为原则。W3CPLUS站提供了有关于CSS,CSS3,HTML,HTML5,jquery,手机移动端的技术文档、DEMO、资源,与前端爱好者一起共勉。"> <link rel="shortcut icon" href="http://www.w3cplus.com/sites/all/themes/marvin/favicon.ico"> <link href='http://Fonts.GoogleAPIs.com/CSS?family=Jockey+One' rel='stylesheet' type='text/CSS'> <Title>CSS3 制作下拉菜单</Title><style type="text/CSS">*{ margin: 0; @R_502_5095@: 0;}body { @R_502_5095@: 50px; background: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUQAA/+4ADkFkb2JlAGTAAAAAAf/bAIQAAgICAgICAgICAgMCAgIDBAMCAgMEBAQEBAQEBAYEBQUFBQQGBgcHBwcHBgkJCgoJCQwMDAwMDAwMDAwMDAwMDAECAwMFBAUJBgYJDQoICg0PDg4ODg8PDAwMDAwPDWwMDAwMDA8MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAEAAOAwERAAIRAQMRAf/EAFgAAAMBAAAAAAAAAAAAAAAAAAABAgkBAQEBAAAAAAAAAAAAAAAAAAADBRAAAgIDAQEBAAAAAAAAAAAAAREhAgAxQWFREhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AzFMWTRD3PfM2E0/uNsgL0RgIFg8erB/ezgDqQkRWoSmebwP/2Q==); Font-family: 'Jockey One',sans-serif; color: #fff;}a { color: rgb(1,124,185); text-decoration: none;}li { List-style: none outsIDe none;}#nav:after,#nav:before { content:""; display: table;}#nav:after { clear:both; overflow: hIDden;}#nav { zoom: 1; margin: 50px auto; wIDth: 530px;}#nav > li{ float: left; display: inline; border-right: 1px solID #848d95; border-left: 1px solID #e3e8ec; Box-shadow: 0 1px 0 rgba(84,95,109,0.75),0 2px 0 rgba(84,0 3px 0 rgba(84,0.75); position: relative; background-color: #c5cfd8; /* old browsers */ /* IE9 SVG,needs conditional overrIDe of 'filter' to 'none' */ background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0ims4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJsIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAliiB5MT0iMCUiIHgyPSIwJsIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJsIgc3RvcC1jb2xvcj0iI2M1Y2ZkOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5Y2E4YjEiIHN0b3Atb3BhY2l0eT0imsIvPgogIDwvbgluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0imsIgZmlsbD0IDXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background-image: -moz-linear-gradIEnt(top,#c5cfd8 0%,#9ca8b1 100%); /* FF3.6+ */ background-image: -webkit-gradIEnt(linear,left top,left bottom,color-stop(0%,#c5cfd8),color-stop(100%,#9ca8b1)); /* Chrome,Safari4+ */ background-image: -webkit-linear-gradIEnt(top,#9ca8b1 100%); /* Chrome10+,Safari5.1+ */ background-image: -o-linear-gradIEnt(top,#9ca8b1 100%); /* Opera 11.10+ */ background-image: -ms-linear-gradIEnt(top,#9ca8b1 100%); /* IE10+ */ background-image: linear-gradIEnt(to bottom,#9ca8b1 100%); /* W3C */ filter: progID:DXImagetransform.Microsoft.gradIEnt( startcolorstr='#c5cfd8',endcolorstr='#9ca8b1',GradIEntType=0 ); /* ie6-8 */ -webkit-Transition: all 0.25s ease-in .0038s; -moz-Transition: all 0.25s ease-in .0038s; -o-Transition: all 0.25s ease-in .0038s; Transition: all 0.25s ease-in .0038s;}#nav li:first-child { border-left: none; border-radius: 5px 0 0 5px;}#nav li:last-child { border-radius: 0 5px 5px 0; border-right: none;}#nav li:last-child::after { display: none;}#nav .sub-menu { position: absolute; right: 0; left: -1px; top: 100%; border-radius: 0 0 5px 5px; Box-shadow: 0 1px 0 rgba(84,0.75); background-color: #d9e0e5; /* old browsers */ /* IE9 SVG,PD94bWwgdmVyc2lvbj0ims4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJsIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAliiB5MT0iMCUiIHgyPSIwJsIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJsIgc3RvcC1jb2xvcj0iI2Q5ZTBlNSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNjNWNkZDMiIHN0b3Atb3BhY2l0eT0imsIvPgogIDwvbgluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0imsIgZmlsbD0IDXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background-image: -moz-linear-gradIEnt(top,#d9e0e5 0%,#c5cdd3 100%); /* FF3.6+ */ background-image: -webkit-gradIEnt(linear,#d9e0e5),#c5cdd3)); /* Chrome,#c5cdd3 100%); /* Chrome10+,#c5cdd3 100%); /* Opera 11.10+ */ background-image: -ms-linear-gradIEnt(top,#c5cdd3 100%); /* IE10+ */ background-image: linear-gradIEnt(to bottom,#c5cdd3 100%); /* W3C */ filter: progID:DXImagetransform.Microsoft.gradIEnt( startcolorstr='#d9e0e5',endcolorstr='#c5cdd3',GradIEntType=0 ); /* ie6-8 */ display: none;}#nav > li:hover { background-color: #d8dfe4; /* old browsers */ /* IE9 SVG,PD94bWwgdmVyc2lvbj0ims4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJsIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAliiB5MT0iMCUiIHgyPSIwJsIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIxJsIgc3RvcC1jb2xvcj0iI2Q4ZGZlNCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNkNWRlZTQiIHN0b3Atb3BhY2l0eT0imsIvPgogIDwvbgluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0imsIgZmlsbD0IDXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background-image: -moz-linear-gradIEnt(top,#d8dfe4 1%,#d5dee4 100%); /* FF3.6+ */ background-image: -webkit-gradIEnt(linear,color-stop(1%,#d8dfe4),#d5dee4)); /* Chrome,#d5dee4 100%); /* Chrome10+,#d5dee4 100%); /* Opera 11.10+ */ background-image: -ms-linear-gradIEnt(top,#d5dee4 100%); /* IE10+ */ background-image: linear-gradIEnt(to bottom,#d5dee4 100%); /* W3C */ filter: progID:DXImagetransform.Microsoft.gradIEnt( startcolorstr='#d8dfe4',endcolorstr='#d5dee4',GradIEntType=0 ); /* ie6-8 */ position: relative; top: 3px; border-right-color: #848d95; Box-shadow: -1px 0 0 #848d95; color: #2281cd;}#nav li:hover > ul { display: block;}#nav a { display: block; float: left; @R_502_5095@: 15px 30px; Font-size: 16px; color: #2d2f38; text-shadow: 0 1px 0 rgba(225,232,235,0.75); -webkit-Transition: all 0.25s ease-in .0038s; -moz-Transition: all 0.25s ease-in .0038s; -o-Transition: all 0.25s ease-in .0038s; Transition: all 0.25s ease-in .0038s;}#nav a:hover { color: #2281cd;}#nav .sub-menu a { color: #2d2f38; Font-size: 14px; @R_502_5095@: 10px 30px; float: none;}#nav .sub-menu a:hover { background-color: #a4b0ba; /* old browsers */ /* IE9 SVG,PD94bWwgdmVyc2lvbj0ims4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJsIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAliiB5MT0iMCUiIHgyPSIwJsIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJsIgc3RvcC1jb2xvcj0iI2E0YjBiYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQliiBzdG9wLWNvbG9yPSIjZDVkZWU0IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJsIgc3RvcC1jb2xvcj0iI2I1YzBjOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0imsIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtDWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=); background-image: -moz-linear-gradIEnt(top,#a4b0ba 0%,#d5dee4 4%,#b5c0c9 100%); /* FF3.6+ */ background-image: -webkit-gradIEnt(linear,#a4b0ba),color-stop(4%,#d5dee4),#b5c0c9)); /* Chrome,#b5c0c9 100%); /* Chrome10+,#b5c0c9 100%); /* Opera 11.10+ */ background-image: -ms-linear-gradIEnt(top,#b5c0c9 100%); /* IE10+ */ background-image: linear-gradIEnt(to bottom,#b5c0c9 100%); /* W3C */ filter: progID:DXImagetransform.Microsoft.gradIEnt( startcolorstr='#a4b0ba',endcolorstr='#b5c0c9',GradIEntType=0 ); /* ie6-8 */ Box-shadow: 0 1px 0 rgba(255,255,inset 0 2px 6px rgba(69,78,90,0.15);}#nav .sub-menu li:last-child a:hover { border-radius: 0 0 5px 5px;}#nav form { @R_502_5095@: 15px 30px;}</style> </head><body><h1 ><a href="http://www.w3cplus.com/demo/create-nav-menu-with-CSS3.HTML" target="_blank">CSS3 制作下拉菜单</a></h1> <ul ID="nav"> <li><a href="#">Home</a></li> <li> <a href="#">Portfolio</a> <ul > <li><a href="#">IDentity</a></li> <li><a href="#">Print</a></li> <li><a href="#">Online</a></li> </ul> </li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> <li><a href="#">W3cplus</a></li> </ul><p >作者:大漠-<a href="http://www.w3cplus.com/" target="_blank">w3cplus</a><br>如有更好建议或疑问请加群:1041263</p></body></HTML>
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的CSS3制作下拉菜单全部内容,希望文章能够帮你解决CSS3制作下拉菜单所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)