久久久久久久精品成人热色戒 ,97精品国产97久久久久久免费,久久综合丁香激情久久http://www.shnenglu.com/momoxiao/category/17815.htmlzh-cnSun, 19 Feb 2012 16:09:21 GMTSun, 19 Feb 2012 16:09:21 GMT60中文字號、磅和像素對照關系http://www.shnenglu.com/momoxiao/archive/2012/02/18/165936.html小默小默Sat, 18 Feb 2012 15:05:00 GMThttp://www.shnenglu.com/momoxiao/archive/2012/02/18/165936.htmlhttp://www.shnenglu.com/momoxiao/comments/165936.htmlhttp://www.shnenglu.com/momoxiao/archive/2012/02/18/165936.html#Feedback0http://www.shnenglu.com/momoxiao/comments/commentRss/165936.htmlhttp://www.shnenglu.com/momoxiao/services/trackbacks/165936.html


本文介紹中文字號、磅(pt)和像素(px)的對照關系,方便大家設計網頁時參考合適的字號,一般網頁正文字體為12px到16px,相當于9-12磅字號大小,標題文字可以稍大一點,具體參見下文表格字體大小,本文內容來源于網絡匯總,做了點補充,如有錯誤,歡迎指出。

一、基本單位概念

單位中文名稱轉換
inch英寸1英寸=2.54厘米
cm厘米 
pt磅或點數,是point簡稱1pt=1/72(英寸)
px像素,是pix簡稱 
   

二、中文字號大小、磅和像素對照關系

下表參照顯示器96dbi(每英寸點數)顯示進行換算結果。比如:6.5pt = 6.5 * 1/72 * 96 = 8.6px,像素肯定不能出現小數點的,一般是取小顯示。下表字體已經按照各行所代表的字號大小進行顯示。

字號磅(pt)像素(px)
小六6.58px
六號7.510px
小五912px
五號10.514px
小四1216px
四號1418px
小三1520px
三號1621px
小二1824px
二號2229px
小一2432px
一號2634px
小初3648px
初號4256px


小默 2012-02-18 23:05 發表評論
]]>
django, CSRF token missing or incorrect http://www.shnenglu.com/momoxiao/archive/2011/10/03/157443.html小默小默Mon, 03 Oct 2011 14:56:00 GMThttp://www.shnenglu.com/momoxiao/archive/2011/10/03/157443.htmlhttp://www.shnenglu.com/momoxiao/comments/157443.htmlhttp://www.shnenglu.com/momoxiao/archive/2011/10/03/157443.html#Feedback0http://www.shnenglu.com/momoxiao/comments/commentRss/157443.htmlhttp://www.shnenglu.com/momoxiao/services/trackbacks/157443.html
CSRF token missing or incorrect
--
1 在 templete 中, 為每個 POST form 增加一個 {% csrf_token %} tag. 如下:
<form>
    {% csrf_token %}
</form>
2 在 view 中, 使用 django.template.RequestContext 而不是 Context.
render_to_response, 默認使用 Context. 需要改成 RequestContext.
導入 class:
from django.template import RequestContext
給 render_to_response 增加一個參數:
def your_view(request):
    ...
    return render_to_response('template.html',
          your_data,
          context_instance=RequestContext(request)
    )


小默 2011-10-03 22:56 發表評論
]]>
'JavaScript DOM 編程藝術' 第三章 DOM 例子http://www.shnenglu.com/momoxiao/archive/2011/09/26/156794.html小默小默Sun, 25 Sep 2011 21:05:00 GMThttp://www.shnenglu.com/momoxiao/archive/2011/09/26/156794.htmlhttp://www.shnenglu.com/momoxiao/comments/156794.htmlhttp://www.shnenglu.com/momoxiao/archive/2011/09/26/156794.html#Feedback0http://www.shnenglu.com/momoxiao/comments/commentRss/156794.htmlhttp://www.shnenglu.com/momoxiao/services/trackbacks/156794.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    
<style>
        body 
{
            color
: white;
            background-color
: black;
        
}
        p 
{
            color
: yellow;
            font-family
: "arial", sans-serif;
            font-size
: 1.2em;
        
}

        .special 
{
            font-style
: italic;
        
}
        h2.special 
{
            text-transform
: uppercase;
        
}

        #purchases 
{
            border
: 1px solid white;
            background-color
: #333;
            color
: #ccc;
            padding
: 1em;
        
}
        #purchases li 
{
            font-weight
: bold;
        
}
    
</style>
    
<meta http-equiv="content-type" content="text/html; charset=utf-8">
    
<title>Shopping list</title>
</head>
<body>
    
<h1>What to buy</h1>
    
<title="a gentle reminder">Don't forget to buy this stuff.</p>
    
<ul id="purchases">
        
<li>A tin of beans</li>
        
<li>Cheese</li>
        
<li>Milk</li>
    
</ul>

    
<class="special">This paragraph has the special class</p>
    
<h2 class="special">So does this headline</h2>

    
<script>
    var println 
= function(arg) {
        
if (arg)
            document.write(arg);
        document.write(
"<br />");
    }

    println(
"getElementById():");
    println(
"id purchases: " + document.getElementById("purchases"));
    println(
"innerText: " + document.getElementById("purchases").innerText);
    println();

    println(
"getElementsByTagName():")
    li_items 
= document.getElementsByTagName("li");
    println(
"tag li: " + li_items);
    println(
"length: " + li_items.length);
    
for (var i = 0; i < li_items.length; i++) {
        println(i 
+ "" + document.getElementsByTagName("li")[i].innerText);
    }
    println();

    println(
"with \"*\" :");
    println(
"all tags: " + document.getElementsByTagName("*").length);
    println();

    println(
"combine ById and ByTagName - get tags in a id: ")
    
var shopping = document.getElementById("purchases");
    
var items = shopping.getElementsByTagName("*");
    println(
"tag \"*\" in id \"purchases\"" + items.length);
    println();

    println(
"object.getAttribute(attribute) - get title attribute of the objects which tags are p");
    
var tags_p = document.getElementsByTagName("p");
    
for (var i = 0; i < tags_p.length; i++) {
        println(tags_p[i].getAttribute(
"title"));
    }
    println();

    println(
"object.setAttribute(attribute, value) - set title attribute of the object which id is purchases");
    
var shopping = document.getElementById("purchases");
    shopping.setAttribute(
"title""a list of goods");
    println(shopping.getAttribute(
"title"));

    
</script>
</body>
</html>


小默 2011-09-26 05:05 發表評論
]]>
HTML xmlns 屬性http://www.shnenglu.com/momoxiao/archive/2011/09/26/156789.html小默小默Sun, 25 Sep 2011 16:41:00 GMThttp://www.shnenglu.com/momoxiao/archive/2011/09/26/156789.htmlhttp://www.shnenglu.com/momoxiao/comments/156789.htmlhttp://www.shnenglu.com/momoxiao/archive/2011/09/26/156789.html#Feedback0http://www.shnenglu.com/momoxiao/comments/commentRss/156789.htmlhttp://www.shnenglu.com/momoxiao/services/trackbacks/156789.html
HTML xmlns 屬性
xmlns 屬性可以在文檔中定義一個或多個可供選擇的命名空間. 該屬性可以放置在文檔內任何元素的開始標簽中. 該屬性的值類似于 URL, 它定義了一個命名空間, 瀏覽器會將此命名空間用于該屬性所在元素內的所有內容.
例如, 如果需要使用符合 XML 規范的 XHTML 文檔, 則應該在文檔中的 <html> 標簽中至少使用一個 xmlns 屬性, 以指定整個文檔所使用的主要命名空間.
<html xmlns="http://www.w3.org/1999/xhtml">

--
http://www.w3school.com.cn/tags/tag_prop_xmlns.asp

--
TODO XML
~              


小默 2011-09-26 00:41 發表評論
]]>
html doctype declarationhttp://www.shnenglu.com/momoxiao/archive/2011/09/25/156783.html小默小默Sun, 25 Sep 2011 15:22:00 GMThttp://www.shnenglu.com/momoxiao/archive/2011/09/25/156783.htmlhttp://www.shnenglu.com/momoxiao/comments/156783.htmlhttp://www.shnenglu.com/momoxiao/archive/2011/09/25/156783.html#Feedback0http://www.shnenglu.com/momoxiao/comments/commentRss/156783.htmlhttp://www.shnenglu.com/momoxiao/services/trackbacks/156783.html
HTML <!DOCTYPE> Declaration
--
Definition and Usage
The doctype declaration should be the very first thing in an HTML document, before the <html> tag.
The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.
The doctype declaration refers to a Document Type Defination(DTD). The DTD specifies the rules for the markup language, so that the browsers render the content correctly.
--
Doctype Avalable in the W3C Recommendations
XHTML 1.1
This DTD is equal to XHTML 1.0 Strict, but allows you to add modules (for examp.e to provide ruby support for East-Asian languages).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
--
http://www.w3schools.com/tags/tag_doctype.asp


小默 2011-09-25 23:22 發表評論
]]>
久久久久成人精品无码| 99久久精品无码一区二区毛片| 综合久久精品色| 人妻无码αv中文字幕久久| 精品一区二区久久| 久久综合日本熟妇| 久久99精品国产麻豆| 久久99精品久久久久久噜噜| 色青青草原桃花久久综合| 国产精品久久久久久久久| 久久精品成人影院| 国产精品久久久天天影视| 日韩va亚洲va欧美va久久| 狠狠色丁香婷婷久久综合不卡| 久久国产乱子伦精品免费午夜| 久久人人爽人人爽人人片AV不| 久久97久久97精品免视看| 久久久久女人精品毛片| 人妻无码久久精品| 岛国搬运www久久| 久久精品国产亚洲av水果派 | 合区精品久久久中文字幕一区 | www.久久热| 久久久久久国产精品美女| 99久久精品久久久久久清纯| 欧洲人妻丰满av无码久久不卡| 一本综合久久国产二区| 狠狠综合久久综合中文88| 久久久久免费精品国产| 久久精品aⅴ无码中文字字幕不卡| 久久综合偷偷噜噜噜色| 无夜精品久久久久久| 久久无码人妻精品一区二区三区| 久久久久久久人妻无码中文字幕爆| 久久婷婷是五月综合色狠狠| 中文字幕无码久久精品青草| 国产亚洲成人久久| 国产69精品久久久久99| 亚洲国产精品一区二区久久| 国产精品久久自在自线观看| 97久久香蕉国产线看观看|