網頁

2010年8月29日 星期日

【CSS】圓角屬性 - CSS3 -moz-border-radius, -webkit-border-radius, border-radius

2 則留言:
[Firefox]
-moz-border-radius 是 Firefox 用來顯示圓角的語法。
如果四個角都是相同的設定,可以使用這個方法 :
-moz-border-radius:25px; /*四個角一起設定*/

【CSS】半透明效果 - CSS3 rgba, hsla, filter, -ms-filter

沒有留言:
[第一種] :內部所有物件皆透明
瀏覽器標準:
  • 標準(Firefox): opacity:0~1
  • IE7: filter:alpha(opacity=0~100);
  • IE6: 還要再加上 zoom:1 ,不然會沒效

2010年8月26日 星期四

【BLOG】Blogger 上安裝 SyntaxHighlighter

沒有留言:
有時候想要分享程式碼,卻會遇到使用原本HTML 的

標籤顯示的樣式太單調、或是原本程式會因為"tab"的空格問題雜亂不堪。這是該使用Syntax Hightlighter的時候了!!

【1】首先去Syntax Highlighter的網站下載程式,然後解壓縮。
http://alexgorbatchev.com/SyntaxHighlighter/download/

然後到解壓縮後的資料夾中


/scripts 資料夾中copy一個必要檔案與自己所需要的程式語言模組。
→shCore.js
Syntax Highlighter 官方模組清單解釋


/styles 資料夾中copy以下兩個必要檔案。
→ shCore.css, shThemeDefault.css





2010年8月19日 星期四

【Apache】Internet 403 Forbidden. You don't have permission to access \ on this server.

沒有留言:
剛灌好Apache Server 結果才輸入http://localhost/ 卻出現這個錯誤...

Internet 403 Forbidden.

You don't have permission to access \ on this server.


其實這是 Apache 的設定檔問題
開啟 httpd.conf 尋找<Directory />

可以找到以下設定值:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    deny from all
    Satisfy all
</Directory>

把deny from all改成 allow from all 就可以了

存檔後重新啟動Apache後再試一次應該就不會再出現先前的問題