schema.org のすべてのマイクロデータを自分の Web サイトに組み込んでいます。私の Web サイトには 47 ページありますが、マスター ページは 5 つです。
私の .resx リソース ファイル (10 の異なる言語) 内のコードの多くには、既に div タグが含まれています。しかし、たとえば、怠惰な方法でマスター ページの上部に開始 div タグを配置し、マスター ページの下部に終了 div タグを配置することはできますか?
たとえば、これは microdata の通常の構文です。
<div itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Jason Weber</span> has a background in economics, and brings his
experience to <span itemprop="company">USS Vision</span>.
</div>
しかし、私のページにはすでに多くの div タグがあります。マスター ページに移動して、マスター ページの上部に次のように入力します。
<div itemscope itemtype="http://schema.org/company"> (top of master page)
--------- below is the individual page ---------
This is where each page will differ. There is much text in here, as well as pictures,
and other things. Much of this already has div tags in it. So if I don't want to
print something, I already <div class="noprint"><span class="tablestyle3">have div
classes in there</span></div>.
--------- above is the individual page ---------
</div> (bottom of master page)
これは怠惰で簡単な方法を考えているのですが、それが asp.net とマスター ページの目的ではないでしょうか。では、私の考えに従っていただければ、これでよろしいでしょうか。 マスター ページの div タグで div タグを囲むことはできますか? それとも、47 ページすべてを掘り下げて、各ページに個別の div タグを配置する必要があるのでしょうか? そんなことになっても、やります。私は schema.org の microdata で販売されています。誰でも提供できるガイダンスをありがとう!