uniGUI學習之uniButton設置圖標+扁平化CSS(34)


1]uniButton設置圖標

2]uniButton扁平化CSS


 1]設置IconCls屬性,這種方法不需添加ImageList,簡單方便,推薦使用


2]如嫌方法1的圖標樣式太少,可載入本地圖標,雙擊UniNativeImageList控件,推薦使用

 

 設置uniButton的Images屬性和ImageIndex屬性即可。


 3]雙擊UniNativeImageList,載入網絡字體圖標,需聯網,不穩定,不推薦使用。

  


 2]uniButton扁平化

 

  雙擊右邊的ServerModule

.bntAdd
{
border-radius:0px;
border: none;
background:#4ca54c !important;
}

 

回到界面,在uniButton的LayoutConfigCls設為上面的bntAdd


總是說我字少總是說我字少總是說我字少總是說我字少總是說我字少總是說我字少總是說我字少總是說我字少

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM