久热国产精品视频,伊人久久大香线,在线观看中文字幕不卡http://www.shnenglu.com/momoxiao/category/17815.htmlzh-cnSun, 19 Feb 2012 16:09:21 GMTSun, 19 Feb 2012 16:09:21 GMT60中文字號、磅和像素對照關(guān)系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)的對照關(guān)系,方便大家設(shè)計網(wǎng)頁時參考合適的字號,一般網(wǎng)頁正文字體為12px到16px,相當(dāng)于9-12磅字號大小,標(biāo)題文字可以稍大一點,具體參見下文表格字體大小,本文內(nèi)容來源于網(wǎng)絡(luò)匯總,做了點補(bǔ)充,如有錯誤,歡迎指出。

一、基本單位概念

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

二、中文字號大小、磅和像素對照關(guān)系

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

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


小默 2012-02-18 23:05 發(fā)表評論
]]>
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, 默認(rèn)使用 Context. 需要改成 RequestContext.
導(dǎo)入 class:
from django.template import RequestContext
給 render_to_response 增加一個參數(shù):
def your_view(request):
    ...
    return render_to_response('template.html',
          your_data,
          context_instance=RequestContext(request)
    )


小默 2011-10-03 22:56 發(fā)表評論
]]>
'JavaScript DOM 編程藝術(shù)' 第三章 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 發(fā)表評論
]]>
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 屬性可以在文檔中定義一個或多個可供選擇的命名空間. 該屬性可以放置在文檔內(nèi)任何元素的開始標(biāo)簽中. 該屬性的值類似于 URL, 它定義了一個命名空間, 瀏覽器會將此命名空間用于該屬性所在元素內(nèi)的所有內(nèi)容.
例如, 如果需要使用符合 XML 規(guī)范的 XHTML 文檔, 則應(yīng)該在文檔中的 <html> 標(biāo)簽中至少使用一個 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 發(fā)表評論
]]>
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 發(fā)表評論
]]>
国产成人久久精品激情| 久久精品国产亚洲AV不卡| 久久av无码专区亚洲av桃花岛| 色综合久久久久无码专区| 99久久国产热无码精品免费| 国产精品免费久久| 亚洲熟妇无码另类久久久 | 久久久亚洲精品蜜桃臀| 97精品伊人久久大香线蕉app| 亚洲国产精品无码久久久久久曰| 女人香蕉久久**毛片精品| 狠狠色狠狠色综合久久| 久久亚洲熟女cc98cm| 亚洲中文字幕伊人久久无码| 久久精品国产72国产精福利| 亚洲av成人无码久久精品| 综合久久精品色| 中文字幕亚洲综合久久菠萝蜜| 精品一区二区久久久久久久网站| 久久精品国产亚洲AV影院| 国产精品久久一区二区三区| 久久天天躁夜夜躁狠狠| 久久se这里只有精品| 91麻豆精品国产91久久久久久| 午夜欧美精品久久久久久久| 伊色综合久久之综合久久| 久久精品国内一区二区三区| 亚洲中文字幕久久精品无码喷水| 午夜福利91久久福利| 久久久久国产亚洲AV麻豆| 99久久www免费人成精品| 国产精品视频久久久| 99精品国产在热久久| 日韩精品久久无码人妻中文字幕| 久久久久久久久久久| 久久久久久久女国产乱让韩| 久久久久久国产a免费观看黄色大片 | 国内精品久久国产大陆| 婷婷五月深深久久精品| 久久大香香蕉国产| 日本一区精品久久久久影院|