This time to bring you how to add the banner button in the DW, add the banner button in the DW note what, here is the actual case, take a look.
1, prepare a banner material, put in the IMG picture library
2. Open Dreamweaver software,CTRL + N create a new HTML file and save
3. Build Content box and set class name in body
<p class= "banner" ><input type= "button" value= "left" class= "Bt_left" > <input type= "button" value= "right" class= "Bt_right" ></p>
Include the picture and two arrow keys in a large box, and then position the left and right positions
4. Add the style tag to the head and set the value of the banner property to the width:
<style>.banner{width:1200px;height:300px;margin:0 Auto;overflow:hidden;}. Banner img{width:100%;} </style>
5, the large frame banner set to relative positioning, set the left button absolute positioning, and set the location
. bt_left{position:absolute;top:50%;left:20px;}
6. Set the absolute positioning of the right button and set the position
. bt_right{position:absolute;top:50%;right:20px;}
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Recommended reading:
20 CSS code usage precautions in front-end combat project
Using pure CSS3 to intercept strings