技術提供:Blogger.

創意網頁設計,響應式網頁,部落格版型,資料庫,購物車,Bootstrap,RWD,html,css,php,jquery,MySQL,專營綠茶,紅茶,高山凍頂烏龍,阿里山杉林溪梨山大禹嶺茶及茶葉罐杯壺禮盒批發零售,兼營艋舺快遞,汽機車外送,中央果菜市場,環南市場,迪化街等地代購採買及各項代理服務! 孟甲服務專線:0952-916626
E-mail:roberchen3@gmail.com


[伸縮自如]的響應式網頁購物車,結合部落格、手機及平板電腦

隨著智慧型手機的普及網頁的技術近年來也開始重視手機上的視覺效果,響應式網頁設計概念,簡而言之,就是整個網頁頁面會對應不同的解新度,而有不同的呈現方式。
隨著移動平台手機的用戶大量增加,己經正式超越了PC,成為不可忽略的新興力量,所以響應式網頁當然以移動手機優先設計。
Responsive Web Design響應式網站如同HTML5一樣,絕對是未來網頁設計的一個重要方向!就是能隨著螢幕視窗的大小,網頁自動會做大小切換,版面也不太一樣,通用於平板、智慧型手機、電腦、電視的跨平台設計。
早期的手機網頁開發都是與電腦上的網站區隔開來另外再製做,現在只要設計一個響應式網頁就可以大小通包,因為以百分比的方式及彈性的畫面設計,在不同解像度下改變網頁頁面的佈局,讓不同的設備都可以正常瀏覽同一網站,提供最佳的視覺體驗。 由於是由同一個網頁轉變,管理者也就不必大費周章的重複更新網頁資訊,只要設計一個響應式網頁就可以一次搞定!
不僅手機版本,就連平板電腦如iPad等的平台也能夠達到視覺最佳化。
簡單的來說讓網站可以針對不同設備(桌機、筆電、平版、手機)等不同尺寸螢幕瀏覽網頁時,整個網頁頁面會對應不同的解析度,而有不同的呈現方式,也就是說可以讓最重要的訊息在有限的版面中清楚的呈現給用戶。
fb likebox網址https://developers.facebook.com/docs/plugins/like-button

ptf減肥瘦身網址http://smallpdf.com/compress-pdf
~歡迎轉載,但請註明來源網站名稱和網址,文章若有侵權,請來信告知,我們會盡快處理~

"你是獵人還是獵物?"

Related Posts Plugin for WordPress, Blogger...

解決部落格縮圖失真的問題

<script type='text/javascript'>var thumbnail_mode = "no-float" ;
summary_noimg = 430; 沒有圖片的字元數
summary_img = 340; 有圖片的字元數
img_thumb_height = 150; 縮圖高度
img_thumb_width = 200; 縮圖寬度
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" 改成→/*width="'+img_thumb_width+'px"*/  height="'+img_thumb_height+'px"/></span>';
summ = summary_img;
}
var summary = imgtag + '<div>
' + removeHtmlTag(div.innerHTML,summ) + '</div>
';
div.innerHTML = summary;
}
//]]>
</script>

"你是獵人還是獵物?"

Related Posts Plugin for WordPress, Blogger...

使用facebook及google帳號快速登入語法

FB官方有提供範例
https://developers.facebook.com/docs/php/gettingstarted/
先在FB開發者人員工具中,建立一個新的應用程式
將取得的 APP_ID 跟 APP_SECRET 套在 FB 的 sdk中
就能使用這範例程式做登入&登出的動作
--------------------
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="http://connect.facebook.net/zh_TW/all.js"></script>
    <title>My Facebook Login Page</title>
    <script type="text/javascript">
        // 初始化 & 登入
        function oplogin() {
            FB.init({ appId: '你的app id', status: true, cookie: true, xfbml: true, channelUrl: 'http://www.你的Domain.com.tw/channel.html' }); //appid請去FB申請應用程式
            fblogin();
        }
        function fblogin() {
            FB.login(function (response) {
                if (response.authResponse) {
                    //登入成功
                    FB.api('/me', function (response) {
                        var html = '<table>';
                        for (var key in response) {
                            html += ('<tr>' + '<th>' + key + '</th>' + '<td>' + response[key] + '</td>' + '</tr>');
                        }
                        document.getElementById('me').innerHTML = html + '</table>';
                    });
                }
                else {
                    //登入失敗
                    alert("登入失敗。");
                }
            });
        }
        //登出
        function fblogout() {
            FB.getLoginStatus(function (response) {
                if (response.status === 'connected') {
                    FB.logout(function (response) {
                        // user is now logged out
                        document.getElementById('loginform').submit();
                    });
                } else if (response.status === 'not_authorized') {
                    // the user is logged in to Facebook,
                    // but has not authenticated your app
                    FB.logout(function (response) {
                        // user is now logged out
                        alert("請重新登入!");
                    });
                } else {
                    // the user isn't logged in to Facebook.
                    alert("請重新登入!");
                }
            });
        }
    </script>
</head>
<body>
    <input type="button" id="btn2" onclick="javascript:oplogin();return false;" value="取得Facebook登入者資訊(PartII)" />
    <div id="me">
    </div>
</body>
</html>

"你是獵人還是獵物?"

Related Posts Plugin for WordPress, Blogger...