web-dev-qa-db-ja.com

グリフィコンに対して私がすることはJoomlaに表示されます! 3.3

私はJoomlaの初心者です。 ブートストラップ3 そして Joomla! 3.3。 私は何かを見た グリフィコン カスタムB3では機能しません。 [カスタマイザを使用しました]

私のテンプレートの構造は次のとおりです。

テンプレート/
-css/bootstrap.css | template.css | screen.css 
-fonts/glyphicons-halflings-regular.eot | glyphicons-halflings-regular.svg 
 glyphicons-halflings-regular.ttf | glyphicons-halflings-regular.woff 
-images/logo.png 
-js/boostrap.js 
-component.php 
-favicon.ico 
-index.html 
-index.php 
-template_thumbnail.png 
-template_preview.png 
-templateDetails.xml

に bootstrap.css ファイル、@font-faceは次のようになります。

@ font-face {
 font-family: 'Glyphicons Halflings'; 
 src:url( '../ fonts/glyphicons-halflings-regular.eot'); 
 src :url( '../ fonts/glyphicons-halflings-regular.eot?#iefix')format( 'embedded-opentype')、url( '../ fonts/glyphicons-halflings-regular.woff')format( ' woff ')、url(' ../ fonts/glyphicons-halflings-regular.ttf ')format(' truetype ')、url(' ../ fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular ')format(' svg '); 
}

デフォルトのBootstrapロードされるバージョンは 2.3.2 に Joomla!3.3、しかし私はBootstrapバージョン3をこのようにロードして使用しています:

?php defined('_JEXEC') or die;

$doc = JFactory::getDocument();
$doc->addStyleSheet('templates/' . $this->template . '/css/bootstrap.css');
$doc->addScript('/templates/' . $this->template . '/js/bootstrap.js', 'text/javascript');
?>

なにが問題ですか?

1
prleoassis

bootstrap 2とbootstrap 3を同時にロードした場合、この質問では明確になりません。また、グリフィコンをあなたのコード。正しい(そして機能する)方法は、例えば:

<span class="glyphicon glyphicon-ok"></span>
1
kingprawn