FineUI 官方论坛
标题:
setIconFont
[打印本页]
作者:
小
时间:
2021-6-17 14:54
标题:
setIconFont
<x:GroupPanel ID="GroupPanel1" runat="server" Layout="Block" BlockMD="12" Title="<span class='mygrouppanel'>素材笔记</span>" EnableCollapse="true" EnableIFrame="false" >
<Toolbars>
<x:Toolbar ID="Toolbar1" runat="server">
<Items>
<x:Button ID="btn_font" runat="server" ValidateTarget="Top"
Text="文本" OnClientClick="AddItem('1')" EnablePostBack="false" >
</x:Button>
<x:Button ID="btn_image" runat="server" ValidateTarget="Top"
Text="图片" OnClientClick="AddItem('2')" EnablePostBack="false" >
</x:Button>
<x:Button ID="btn_video" runat="server" ValidateTarget="Top"
Text="视频" OnClientClick="AddItem('3')" EnablePostBack="false" >
</x:Button>
<x:Button ID="Button5" runat="server" Text="预览" IconFont="_Plus" OnClientClick="Preview()" EnablePostBack="false"></x:Button>
<x:Button ID="Button2" runat="server" Text="测试获取Cont内容" IconFont="_Plus" OnClientClick="GetContTent()" Hidden="true" EnablePostBack="false"></x:Button>
</Items>
</x:Toolbar>
</Toolbars>
<Items>
<x:ContentPanel ID="ContPanel" runat="server" Height="300" Width="500" AutoScroll="true" ShowHeader="false">
<div id="Div_ContDIV" class="ContDIV">
<asp:Literal ID="Literal2" Text="" runat="server"></asp:Literal>
</div>
</x:ContentPanel>
</Items>
</x:GroupPanel>
复制代码
F.ready(function () {
var userid = F(HiddenField_useridClientID).getValue();
var commodity_id = F(HiddenField_commodity_idClientID).getValue();
F(btn_fontClientID).setIconFont('f-icon-font');
F(btn_imageClientID).setIconFont('f-icon-image');
F(btn_videoClientID).setIconFont('f-icon-video-camera');
复制代码
[attach]12681[/attach]这个是首次加载的时候展示的效果,
[attach]12682[/attach]
这个是调整一下浏览器窗口的效果
样式有点偏了
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4