2011-08-18 56 views

回答

6

這就是:

<style type="text/css"> 
div.test 
{ 
width: 115px; 
padding: 10px; 
border: 2px solid #000; 
border-radius: 15px; 
-moz-border-radius: 15px; 
} 
</style> 
<div class="test">This is some text!</div> 

-SilverHorn

+2

如果你還記得使用前綴,如「MOZ」(Mozilla的)和「WebKit的」這是最好的(用於Safari和Chrome。)也許有更多的,我不知道。 – SilverHorn

0

例如,使用CSS 3 這裏的example

2

使用CSS添加代碼:border-radius: 10px

我以10px爲例,但是您可以嘗試使用您喜歡的像素數量。

0

添加此CSS:

border-top-right-radius:15px; 
border-top-left-radius:15px; 
border-bottom-right-radius:15px; 
border-bottom-left-radius:15px; 
1

使用border-radius財產。指定金額越高(通常在px),您的形狀就越圓潤。例如:

myDiv { border-radius:30px;} 

希望有幫助。