src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgdagda.com/example.html&…
ボタンに含まれているアドレスの指定部分を
src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgdagda.com/example.html&%23anchor…
とかに変えてあげるだけ。
RewriteEngine On
RewriteRule ^(.*)xxx(.*)$ /$1#$2 [R=301,L,NE]
htacessに上記のような文章を書き込む事で
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
body {
line-height: 1.5em;
font-family: ヒラギノ角ゴ Pro W3, Hiragino Kaku Gothic Pro, メイリオ, Meiryo, Osaka, MS Pゴシック, MS PGothic, sans-serif;
font-size: 13px;
*font-size: small;
*font: x-small;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display:block;
}
nav ul {
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}
a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}
table {
border-collapse:collapse;
border-spacing:0;
font-size: inherit;
font-size: 100%;
}
input, select {
vertical-align:middle;
}
/*
font-size
10px:77%
11px:85%
12px:93%
13:100%
14px:108%
15px:116%
16px:123.1%
17px:131%
18px:138.5%
19px:146.5%
20px:153.9%
21px:161.6%
22px:167%
23px:174%
24px:182%
25px:189%
26px:197%
*/
とりあえず使いそうなタグというか、理解できるタグだけ最定義してる感じです。
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
参照元のページはこちら。
<h1><?php bloginfo(‘title’); ?></h1>
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<h3><?php the_title(); ?></h3>
<div>
<?php the_content(); ?>
</div>
<div><?php the_time(); ?></div>
<?php endwhile; endif; ?>
bodyん中こんだけ。
そりゃ、これだけシンプルならそうそう基準違反はしないよね。PS Disable Auto Formattingは、WordPressの段落自動整形(wpautop)を停止させると共に、ビジュアルエディタが生成するhtmlソースを改変。HTMLモードでの編集時に、意図しないbrタグ、pタグの除去、pタグの付加が発生しないようにすると共に、ビジュアルモード編集時における意図した通りの自然な改行・段落の生成を実現します。 eWebさま