2014-02-01から1ヶ月間の記事一覧
#content { background: url(/css/theme/patchwork/images/border@2x.png) repeat-x top, /* イ */ url(/css/theme/patchwork/images/border@2x.png) repeat-x bottom, /* イ */ url(/css/theme/patchwork/images/content@2x.png); /* ロ */ background-size…
>>> "test"+"a" 'testa' >>> "test"+u"2" u'test2' >>> "test"+u"あ" u'test\u3042' >>> "test{}".format(u"あ") Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\u3042' in positio</module></stdin>…
ページの内容が短い時に、フッターまで上のほうにあがってしまってみっともないことがある。それの回避方法。 html { position: relative; min-height: 100%; } #footer { position: absolute; bottom: 0; width: 100%; /* Set the fixed height of the foot…
CSSってattr()なんていう関数なんてあったんだ… これ知ってればCSSだけでかなり表現の幅が広がりそう これはcontentの時以外でも使えるんだろうか HTML <a href="#"><span data-title="Text Link">Text Link</span></a> CSS a span:after { content: attr(data-title); } ネタ元 コピペでできる!CSS3の素敵効果で…