This article mainly introduces how to use the CSS implementation of a diagram to complete the button instance, it is very useful, it is worth collecting and sharing through the CSS to read the picture coordinate system to achieve a local background map, interested in the small partner reference.
NetEase 126 Login button code is as follows:
<style>. Inp_l1,.inp_l2,{background:url (/upload/20080515201218970.jpg) no-repeat}. inp_l1{width:67px; height : 23px; background-position:-4px-4px; border:0; Color: #464646; LINE-HEIGHT:23PX}. inp_l2{width:67px; height:23px; background-position:-4px-30px; border:0; color: #464646; LINE-HEIGHT:23PX} </style> <input type= "Submit" value= "Login" class= "INP_L1" onmouseover= "This.classname=" Inp_ L2 ' "onmouseout=" this.classname= ' inp_l1 ' "id=" input_btn1 " name=" enter.x "tabindex=" 4 ">
The navigation button code is as follows:
Related recommendations:
CSS for 3D button effects
ANGULARJS Development WebApp to achieve the highlight jump button effect, Ui-sref and ui-sref-active use method
CSS3 Implementation of 3D button effect of the article recommended
CSS3 Show Horizontal scrolling menu button effect code