電腦網頁編纂器
CSS3屬性:border-radius打開本身的網頁編纂器新建HTML文件模板

編寫第一種常用的圓角樣式:同時設置四個角為圓角
HTML代碼:<div class="demo1"></div>
CSS代碼:width: 200px; height: 50px; background-color: crimson; border-radius: 15px;

編寫第二種常用的圓角樣式:設置肆意角為圓角
HTML代碼:<div class="demo2"></div>
CSS代碼:width: 200px; height: 50px; background-color: crimson; border-radius: 20px 50px 20px 50px;

編寫第三種常用的圓角樣式:圓形
HTML代碼:<div class="demo2"></div>
CSS代碼:width: 200px; height: 200px; background-color: crimson;?
border-radius: 50%;

編寫第四種常用的圓角樣式:橢圓
HTML代碼:<div class="demo4"></div>
CSS代碼:width: 200px; height: 150px; background-color: crimson;?
border-radius: 50px/75px;

編寫第四種常用的圓角樣式:零丁設置某一個角
HTML代碼:<div class="demo5"></div>
CSS代碼:width: 200px; height: 150px; background-color: crimson;?
border-top-left-radius: 20px;
border-top-right-radius: 40px;
border-bottom-right-radius: 30px;
border-bottom-left-radius: 50px;

0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!