久热国产精品视频,伊人久久大香线,在线观看中文字幕不卡http://m.shnenglu.com/momoxiao/category/17815.htmlzh-cnSun, 19 Feb 2012 16:09:21 GMTSun, 19 Feb 2012 16:09:21 GMT60中文字號、磅和像素對照關(guān)系http://m.shnenglu.com/momoxiao/archive/2012/02/18/165936.html小默小默Sat, 18 Feb 2012 15:05:00 GMThttp://m.shnenglu.com/momoxiao/archive/2012/02/18/165936.htmlhttp://m.shnenglu.com/momoxiao/comments/165936.htmlhttp://m.shnenglu.com/momoxiao/archive/2012/02/18/165936.html#Feedback0http://m.shnenglu.com/momoxiao/comments/commentRss/165936.htmlhttp://m.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://m.shnenglu.com/momoxiao/archive/2011/10/03/157443.html小默小默Mon, 03 Oct 2011 14:56:00 GMThttp://m.shnenglu.com/momoxiao/archive/2011/10/03/157443.htmlhttp://m.shnenglu.com/momoxiao/comments/157443.htmlhttp://m.shnenglu.com/momoxiao/archive/2011/10/03/157443.html#Feedback0http://m.shnenglu.com/momoxiao/comments/commentRss/157443.htmlhttp://m.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://m.shnenglu.com/momoxiao/archive/2011/09/26/156794.html小默小默Sun, 25 Sep 2011 21:05:00 GMThttp://m.shnenglu.com/momoxiao/archive/2011/09/26/156794.htmlhttp://m.shnenglu.com/momoxiao/comments/156794.htmlhttp://m.shnenglu.com/momoxiao/archive/2011/09/26/156794.html#Feedback0http://m.shnenglu.com/momoxiao/comments/commentRss/156794.htmlhttp://m.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://m.shnenglu.com/momoxiao/archive/2011/09/26/156789.html小默小默Sun, 25 Sep 2011 16:41:00 GMThttp://m.shnenglu.com/momoxiao/archive/2011/09/26/156789.htmlhttp://m.shnenglu.com/momoxiao/comments/156789.htmlhttp://m.shnenglu.com/momoxiao/archive/2011/09/26/156789.html#Feedback0http://m.shnenglu.com/momoxiao/comments/commentRss/156789.htmlhttp://m.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://m.shnenglu.com/momoxiao/archive/2011/09/25/156783.html小默小默Sun, 25 Sep 2011 15:22:00 GMThttp://m.shnenglu.com/momoxiao/archive/2011/09/25/156783.htmlhttp://m.shnenglu.com/momoxiao/comments/156783.htmlhttp://m.shnenglu.com/momoxiao/archive/2011/09/25/156783.html#Feedback0http://m.shnenglu.com/momoxiao/comments/commentRss/156783.htmlhttp://m.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ā)表評論
]]>
国产精品va久久久久久久| 无码任你躁久久久久久老妇 | 久久香蕉一级毛片| 777米奇久久最新地址| 99久久无码一区人妻| 欧美日韩精品久久免费| 97精品久久天干天天天按摩| 久久久精品人妻无码专区不卡| 国产成人综合久久精品红| 狠狠色丁香婷综合久久| 久久精品视频一| 狠狠人妻久久久久久综合| 久久久一本精品99久久精品88| 国产成人99久久亚洲综合精品| 亚洲AV无码一区东京热久久| 久久精品亚洲男人的天堂| 九九久久99综合一区二区| 久久无码AV中文出轨人妻| 国内精品久久久久久久亚洲| 久久精品人人槡人妻人人玩AV| 久久人人爽人人爽人人片av麻烦| 狠狠综合久久综合中文88| 久久最近最新中文字幕大全| 亚洲午夜无码久久久久| 成人久久免费网站| 久久久久亚洲AV成人网人人网站 | 久久精品九九亚洲精品| 99久久这里只精品国产免费| 久久九九免费高清视频| 国产精品内射久久久久欢欢 | 久久久久久免费一区二区三区| 奇米影视7777久久精品| 色偷偷88888欧美精品久久久| 久久无码中文字幕东京热| 国产精品久久婷婷六月丁香| 香蕉久久夜色精品国产尤物| 伊人久久一区二区三区无码| 久久夜色精品国产| 97久久国产综合精品女不卡 | 日韩精品国产自在久久现线拍| 久久se精品一区精品二区|