App下載

html5中AmazeUI的下載配置與Helloworld的實(shí)現(xiàn)方法分享!附源碼!

貧困大賽形象代言人 2021-08-19 10:54:33 瀏覽數(shù) (2034)
反饋

在通過一階段的自我深造和對于 AmazeUI 這個(gè)插件的使用 ,下面小編對于“html5中AmazeUI的下載配置與Helloworld的實(shí)現(xiàn)方法分享!附源碼!”這方面的內(nèi)容進(jìn)行了總結(jié)!希望對小伙伴們有所幫助!

雖然這東西號(hào)稱跨平臺(tái)支持瀏覽器,但建議還是不要使用這個(gè)前端框架開發(fā)PC端的網(wǎng)頁,因?yàn)檫@東西不支持IE8以下的瀏覽器。在PC上不兼容IE6的話,基本可以拋棄了。AmazeUI僅僅用來做移動(dòng)端的網(wǎng)頁還是不錯(cuò)的,其HTML5的特性等很符合手機(jī)瀏覽器的特點(diǎn)。不要妄想能寫出一個(gè)網(wǎng)頁同時(shí)兼容PC與手機(jī),應(yīng)該分開布局。君不見在很多手機(jī)版網(wǎng)頁的底部有“手機(jī)版”與“電腦版”之分嗎?

1、這東西直接在AmazeUI的官網(wǎng)(點(diǎn)擊打開鏈接)中下載,打開官網(wǎng)之后,選擇“開始使用”->然后在“獲取 Amaze UI”一欄中“Amaze UI v2.3.0”

 

2、下載之后,之后解壓,把里面的assets拖到你手機(jī)版的站點(diǎn)目錄。

3、新建一個(gè)Helloworld.html,你的站點(diǎn)目錄應(yīng)該如下圖:

4、在Helloworld.html寫入如下的代碼,然后使用Google瀏覽器、野狐禪等支持手機(jī)版網(wǎng)頁調(diào)試的瀏覽器,打開Helloworld.html,以下的網(wǎng)頁對比與官網(wǎng)的Helloworld.html例子,刪除不少的沒意義的外部文件引用。

<!--使用HTML5開發(fā)-->
<!doctype html>
<html class="no-js">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!--自動(dòng)適應(yīng)移動(dòng)屏幕-->
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <!--優(yōu)先使用webkit內(nèi)核渲染-->
        <meta name="renderer" content="webkit">
        <!--不要被百度轉(zhuǎn)碼-->
        <meta http-equiv="Cache-Control" content="no-siteapp"/>
        <!--以下才是引入amazeui資源-->
        <link rel="stylesheet" href="assets/css/amazeui.min.css">
        <link rel="stylesheet" href="assets/css/app.css">
        <script src="assets/js/jquery.min.js"></script>
        <title>Hello Amaze UI</title>
    </head>
	<body>
    	<h1>Hello Amaze UI.</h1>
        <button type="button" class="am-btn am-btn-default">默認(rèn)樣式</button>
        <button type="button" class="am-btn am-btn-primary">主色按鈕</button>
        <button type="button" class="am-btn am-btn-secondary">次色按鈕</button>
        <button type="button" class="am-btn am-btn-success">綠色按鈕</button>
        <button type="button" class="am-btn am-btn-warning">橙色按鈕</button>
        <button type="button" class="am-btn am-btn-danger">紅色按鈕</button>
        <button type="button" class="am-btn am-btn-danger am-round">圓角紅色按鈕</button>
		<a class="am-btn am-btn-link">鏈接</a>
	</body>
</html>

則得到如下的效果:

那么以后的內(nèi)容就是有關(guān)于“html5中AmazeUI的下載配置與Helloworld的實(shí)現(xiàn)方法分享!”這方面的全部內(nèi)容,更多有關(guān)于html5AmazeUI的使用我們都可以在 AmazeUI教程手冊 進(jìn)行學(xué)習(xí)和了解! 


0 人點(diǎn)贊