資源簡介
C# WEB 圖標字體庫和CSS框架(Font Awesome)
使用Font Awesome的圖標字體庫和CSS框架示例。
Font Awesome提供可縮放的矢量圖標,您可以使用CSS所提供的所有特性對它們進行更改,包括:大小、顏色、陰影、動畫、旋轉或者其它任何支持的效果。
字庫在fonts文件夾內,為最新版4.7.0。
菜單選項在msglist.cs定義:
/*Logo 文字*/
static public string Logo_Text = "C# WEB 模板";
/*頂部按鈕定義*/
static public int Top_Button_num = 4; //按鈕數量
static public string[] Top_Button = new string[4] //按鈕文字
{
"功能一項", "菜單二項", "演示三項", "運行四項"
};
/*頂部右側按鈕圖標定義*/
static public int Top_ButtonRight_num = 1; //按鈕數量
static public string[] Top_ButtonRight = new string[1] //按鈕文字
{
"fa-television"
};
/*左側邊欄按鈕定義*/
static public int Top_ButtonLeft_num = 9; //按鈕數量
static public string[] Top_ButtonLeft = new string[9] //按鈕文字
{
"fa-file-text-o", "fa-external-link", "fa-search", "fa fa-chain", "fa-tablet", "fa-mail-reply-all", "fa-question-circle-o", "fa-print", "fa-power-off"
};
左側邊欄前3個按鈕寫了點擊事件,使用ajax刷新右側內容。
其他的按鈕如有需要,加上onclick事件即可。
VS2017編譯,如需其他版本VS,將代碼復制粘貼到其他版本文件中即可。
關于本示例可參見:http://fontawesome.dashgame.com
使用Font Awesome的圖標字體庫和CSS框架示例。
Font Awesome提供可縮放的矢量圖標,您可以使用CSS所提供的所有特性對它們進行更改,包括:大小、顏色、陰影、動畫、旋轉或者其它任何支持的效果。
字庫在fonts文件夾內,為最新版4.7.0。
菜單選項在msglist.cs定義:
/*Logo 文字*/
static public string Logo_Text = "C# WEB 模板";
/*頂部按鈕定義*/
static public int Top_Button_num = 4; //按鈕數量
static public string[] Top_Button = new string[4] //按鈕文字
{
"功能一項", "菜單二項", "演示三項", "運行四項"
};
/*頂部右側按鈕圖標定義*/
static public int Top_ButtonRight_num = 1; //按鈕數量
static public string[] Top_ButtonRight = new string[1] //按鈕文字
{
"fa-television"
};
/*左側邊欄按鈕定義*/
static public int Top_ButtonLeft_num = 9; //按鈕數量
static public string[] Top_ButtonLeft = new string[9] //按鈕文字
{
"fa-file-text-o", "fa-external-link", "fa-search", "fa fa-chain", "fa-tablet", "fa-mail-reply-all", "fa-question-circle-o", "fa-print", "fa-power-off"
};
左側邊欄前3個按鈕寫了點擊事件,使用ajax刷新右側內容。
其他的按鈕如有需要,加上onclick事件即可。
VS2017編譯,如需其他版本VS,將代碼復制粘貼到其他版本文件中即可。
關于本示例可參見:http://fontawesome.dashgame.com
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Web.UI;
using?System.Web.UI.WebControls;
namespace?WEB_formwork
{
????public?partial?class?_default?:?System.Web.UI.Page
????{
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????/*頂部按鈕定義*/
????????????string?top_button?=?““;
????????????for?(int?i=0;i ????????????{
????????????????top_button?+=?
????????????????????““+
????????????????????Msglist.Top_Button[i]?+
????????????????????““;
????????????}
????????????/*頂部右側按鈕圖標定義*/
????????????string?top_buttonRight?=?““;
????????????for?(int?i?=?0;?i?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1166??2017-09-03?16:20??WEB_formwork.csproj.user
?????文件??????30880??2016-12-13?03:10??bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
?????文件???????1805??2016-12-13?03:10??bin\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xm
?????文件??????50032??2016-06-27?14:50??bin\roslyn\csc.exe
?????文件???????1711??2016-06-27?14:50??bin\roslyn\csc.exe.config
?????文件???????1496??2016-06-27?14:50??bin\roslyn\csc.rsp
?????文件??????13680??2016-06-27?14:50??bin\roslyn\csi.exe
?????文件????????253??2016-06-27?14:50??bin\roslyn\csi.rsp
?????文件?????105392??2016-06-27?14:50??bin\roslyn\Microsoft.Build.Tasks.CodeAnalysis.dll
?????文件????4211112??2016-06-27?14:50??bin\roslyn\Microsoft.CodeAnalysis.CSharp.dll
?????文件??????28088??2016-06-27?14:50??bin\roslyn\Microsoft.CodeAnalysis.CSharp.sc
?????文件????2049432??2016-06-27?14:50??bin\roslyn\Microsoft.CodeAnalysis.dll
?????文件?????128432??2016-06-27?14:50??bin\roslyn\Microsoft.CodeAnalysis.sc
?????文件????5061040??2016-06-27?14:50??bin\roslyn\Microsoft.CodeAnalysis.VisualBasic.dll
?????文件???????6908??2016-06-27?14:50??bin\roslyn\Microsoft.CSharp.Core.targets
?????文件????1264912??2016-06-27?14:50??bin\roslyn\Microsoft.DiaSymReader.Native.amd64.dll
?????文件?????967432??2016-06-27?14:50??bin\roslyn\Microsoft.DiaSymReader.Native.x86.dll
?????文件???????6340??2016-06-27?14:50??bin\roslyn\Microsoft.VisualBasic.Core.targets
?????文件??????20168??2016-06-27?14:50??bin\roslyn\System.AppContext.dll
?????文件?????200440??2016-06-27?14:50??bin\roslyn\System.Collections.Immutable.dll
?????文件??????22776??2016-06-27?14:50??bin\roslyn\System.Diagnostics.StackTrace.dll
?????文件??????20696??2016-06-27?14:50??bin\roslyn\System.IO.FileSystem.dll
?????文件??????20736??2016-06-27?14:50??bin\roslyn\System.IO.FileSystem.Primitives.dll
?????文件?????425864??2016-06-27?14:50??bin\roslyn\System.Reflection.me
?????文件??????50032??2016-06-27?14:50??bin\roslyn\vbc.exe
?????文件???????1711??2016-06-27?14:50??bin\roslyn\vbc.exe.config
?????文件???????1634??2016-06-27?14:50??bin\roslyn\vbc.rsp
?????文件??????85896??2016-06-27?14:50??bin\roslyn\VBCSCompiler.exe
?????文件???????1927??2016-06-27?14:50??bin\roslyn\VBCSCompiler.exe.config
?????文件??????28160??2017-09-03?21:50??bin\WEB_formwork.dll
............此處省略56個文件信息
- 上一篇:C# 調用阿里短信接口發短信
- 下一篇:C#常用類型轉換擴展
評論
共有 條評論