1. img 放在DIV 裡,底部多出一段padding
Ans: img display:block
2.slidebar 好用的js 側開 上開 下開
Adam Charles Smith
https://www.adchsm.com/slidebars/
2016年11月4日 星期五
2016年3月20日 星期日
按鈕翻滾的CSS
CSS
.textbutton {display:block;
line-height: 51px;
color: #fff;
text-align: center;
letter-spacing: -.5px;
font-size: 17px;
width: 100%;
}
.textbutton {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transform-origin: center center;
-ms-transform-origin: center center;
transform-origin: center center;
-webkit-transition: all .35s ease;
transition: all .35s ease;
-webkit-transform: rotateX(0) translateZ(25px) scale(.975);
transform: rotateX(0) translateZ(25px) scale(.975);
background: #248328;
}
.textbutton:hover {
-webkit-transform: rotateX(-90deg) translateZ(25px) scale(.975);
transform: rotateX(-90deg) translateZ(25px) scale(.975);
background: #133a15;
}
.textbutton:after {
content: '成立宗旨與理念';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
background: #133a15;
-webkit-transform: translateY(-25px) translateZ(-25px) rotateX(90deg);
transform: translateY(-25px) translateZ(-25px) rotateX(90deg);
-webkit-transition: all .35s ease;
transition: all .35s ease;
}
.textbutton:hover:after {
background: #248328;
}
HTML
<a href="#" class="textbutton">成立宗旨與理念</a>
2015年12月19日 星期六
滑開感覺動作css
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style>
.header ul li {
display: inline;
}
.header ul a {
display: inline-block;
overflow: hidden;
white-space: nowrap;
width: 30px;
-webkit-transition: color .25s ease-in-out, width .25s ease-in-out;
-moz-transition: color .25s ease-in-out, width .25s ease-in-out;
-ms-transition: color .25s ease-in-out, width .25s ease-in-out;
-o-transition: color .25s ease-in-out, width .25s ease-in-out;
transition: color .25s ease-in-out, width .25s ease-in-out;
}
.header ul a.active, .header ul a:hover {
width: 150px;
}
.header .fa{ width:30px;}
</style>
<div class="header">
<ul>
<li><a href="#"><i class="fa fa-anchor"></i><span>投資組合</span></a></li>
<li><a href="#"><i class="fa fa-bell-o"></i><span>下午7時26分</span></a></li>
<li><a href="#"><i class="fa fa-taxi"></i><span>日出</span></a></li>
<li><a href="#"><i class="fa fa-cogs"></i><span>背景</span></a></li>
</ul>
</div>
.header ul li {
display: inline;
}
.header ul a {
display: inline-block;
overflow: hidden;
white-space: nowrap;
width: 30px;
-webkit-transition: color .25s ease-in-out, width .25s ease-in-out;
-moz-transition: color .25s ease-in-out, width .25s ease-in-out;
-ms-transition: color .25s ease-in-out, width .25s ease-in-out;
-o-transition: color .25s ease-in-out, width .25s ease-in-out;
transition: color .25s ease-in-out, width .25s ease-in-out;
}
.header ul a.active, .header ul a:hover {
width: 150px;
}
.header .fa{ width:30px;}
</style>
html 部分
<div class="header"><ul>
<li><a href="#"><i class="fa fa-anchor"></i><span>投資組合</span></a></li>
<li><a href="#"><i class="fa fa-bell-o"></i><span>下午7時26分</span></a></li>
<li><a href="#"><i class="fa fa-taxi"></i><span>日出</span></a></li>
<li><a href="#"><i class="fa fa-cogs"></i><span>背景</span></a></li>
</ul>
</div>
示意圖
2015年12月1日 星期二
css 分享標籤
Follow us
html
<ul class="redirect-socials"><li><a class="twitter" href="#"><span>Twitter</span></a></li>
<li><a class="facebook" href="#"><span>Facebook</span></a></li>
<li><a class="google" href="#"><span>Google+</span></a></li>
<li><a class="dribbble" href="#"><span>Dribbble</span></a></li>
<li><a class="rss" href="#"><span>RSS</span></a></li>
</ul>
CSS
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
margin: 0;
padding: 0;
}
p {
margin: 1em 0;
line-height: 1.4;
font-family: "Merriweather", georgia, serif;
}
.redirect-socials li {
display: inline-block;
margin-right: .4em;
margin-bottom: .6em;
}
.redirect-socials a {
font-size: 12px;
font-size: 0.75rem;
font-weight: bold;
display: inline-block;
padding: .8em 1.2em 1em;
position: relative;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;
text-decoration:none;
}
.redirect-socials .twitter {
color: #50abf1;
box-shadow: inset 0 -2px 0 #50abf1;
}
.redirect-socials .facebook {
color: #3b599a;
box-shadow: inset 0 -2px 0 #3b599a;
}
.redirect-socials .google {
color: #df4a32;
box-shadow: inset 0 -2px 0 #df4a32;
}
.redirect-socials .dribbble {
color: #ec4989;
box-shadow: inset 0 -2px 0 #ec4989;
}
.redirect-socials .rss {
color: #e77b39;
box-shadow: inset 0 -2px 0 #e77b39;
}
.redirect-socials a:hover {
color: #fff; text-decoration:none;
}
.redirect-socials a span {
position: relative;
z-index: 5;
}
.redirect-socials a::before {
content: '';
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
left: 0;
bottom: 0;
display: inline-block;
-webkit-transform: scale(1, 0);
-moz-transform: scale(1, 0);
-ms-transform: scale(1, 0);
-o-transform: scale(1, 0);
transform: scale(1, 0);
-webkit-transform-origin: 50% 100%;
-moz-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
-o-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;
}
.redirect-socials .twitter::before {
background: #50abf1;
}
.redirect-socials .facebook::before {
background: #3b599a;
}
.redirect-socials .google::before {
background: #df4a32;
}
.redirect-socials .dribbble::before {
background: #ec4989;
}
.redirect-socials .rss::before {
background: #e77b39;
}
.redirect-socials a:hover::before {
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-ms-transform: scale(1, 1);
-o-transform: scale(1, 1);
transform: scale(1, 1);
}
2015年9月15日 星期二
工作筆記
(1)fckeditor 要換新的
(2)換頁程式太舊要更新
(3) FB DEBUG的地方,可以抓取
https://developers.facebook.com/tools/debug/
(2)換頁程式太舊要更新
(3) FB DEBUG的地方,可以抓取
https://developers.facebook.com/tools/debug/
2015年6月8日 星期一
Bootstrap 小螢幕時選單從左/右側彈出
bootstrap navbar on mobile offnavas
http://stackoverflow.com/questions/20863288/bootstrap-3-slide-in-menu-navbar-on-mobile
2015年6月3日 星期三
這個網站可能已遭入侵,但是安全性問題卻空白,導致無法送出審查
這個網站可能已遭入侵,但是安全性問題卻空白,導致無法送出審查
1. 可能剛剛才申請search console權限,還沒找到入侵的問題
2. 可能被放在blocklist 裡面,到下列網址查詢
https://sitecheck.sucuri.net/results/OOO.com.tw (不用輸入wwww)
http://aw-snap.info/file-viewer/ (掃描蠕蟲惡意程式)
https://sitecheck.sucuri.net/results/OOO.com.tw (不用輸入wwww)
http://aw-snap.info/file-viewer/ (掃描蠕蟲惡意程式)
3. 已經移除,但是GOOGLE還沒重新抓取你的網站
4. 到GOOGLE模擬器,再提交一次有問題的頁面
參考資料
4. 到GOOGLE模擬器,再提交一次有問題的頁面
參考資料
https://productforums.google.com/forum/#!msg/webmasters/jrYDYP5sBF4/OUrF14wK0tAJ
"This site may be hacked" but no Security Issues in Webmaster Tools
"This site may be hacked" but no Security Issues in Webmaster Tools
訂閱:
文章 (Atom)
