CSS美化select表單邊框

來源:互聯網
上載者:User
這個沒有什麼技術含量,也沒有什麼大的價值,不過既然想到了就寫到這裡.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<style type="text/css">
#a{
    border:1px dotted #ccc;
    width:118px;height:19px;
    display:block;overflow:hidden
}

#b{
    width:120px;position:relative;
    top:-2px;left:-2px;
}
</style>
</HEAD>

<BODY>
<div id="a">
<select name="test" id="b">
<option value=1>select1</option>
<option value=2>select2</option>
<option value=3>select3</option>
<option value=4>select4</option>
<option value=5>select5</option>
</select>
</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.