2012-05-16 39 views

回答

0

給你的滑塊容器邊界半徑,比添加溢出:隱藏它。它適用於iOS和Android:

.container { 
width: 100%; /* Your slider width, percent or pixels... */ 
height: 100%; /* Your slider height*/ 
border-radius: 100%; /* Circle or ellipse, depends of parent element */ 
overflow: hidden; /* Crop content to border */ 
background: yellow; /* Irrelevant */ 
position: relative; /* Takes control of inner elements, could be irrelevant too */ 
} 

其中的所有內容都將被裁剪爲邊框。