どのようにリンクのリストをブロックホバー効果を作成する
このチュートリアルはどのようにリンクの一覧については、ブロックホバー効果を作成するには李、スパンと日タグがきれいなCSSのデザインを使用してフォームを説明しています。
ステップ: 1基本的なHTMLの構造
> <ul> <li> <a href = "#" > Link Heading One <em> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut viverra dui nec risus. <div = "linkBox" >は<ul> <li>の<a のHREF = "#" > 1つの見出しリンク<em>指定Loremイプサムかなしみ番号amet 、 consectetur adipiscing elit座る。超音波viverra当社笑いduoの複数形。 href = "#" > Link Heading Two <em> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut viverra dui nec risus. < / em >の<span> 2009年6月20日< / span >の< / a >を< /李> <li>の<aのHREF = "#" > 2 をtortor葉rhoncus EUの 見出し リンク neque <em>指定Loremイプサムかなしみでamet 、 consectetur adipiscing elit座る。超音波viverra当社笑いduoの複数形。 href = "#" > Link Heading Three <em> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut viverra dui nec risus. EUのnequeでtortor葉rhoncus 。 < / em >の<span> 2009年6月21日< / span >の< / a >を< /李> <li> 『 <a のHREF = "#" > 3つの見出しリンク<em>指定Loremイプサムかなしみamet 、 consectetur adipiscing elit座る。超音波viverra当社笑いduoの複数形。 EUのnequeでtortor葉rhoncus 。 < / em >の<span> 2009年6月22日< / span >の< / a >を< /李> < /のUL > < /部>
ステップ: 1 CSSコード
list-style-type : none ; width : 400px ; } #linkBox li { margin : 5px 0 ; border-bottom : 1px dotted #ccc ; border-top : 1px dotted #ccc ; } #linkBox li a { color : #E67701 ; display : block ; font : bold 100 . 1 % "Georgia" , Times New Roman, Times, serif ; padding : 5px ; text-decoration : none ; line-height : 182 . 5 %; } * html #linkBox li a { /* make hover effect work in IE */ width : 400px ; } #linkBox li a :hover { background : #eeeeee ; } #linkBox a em { color : # 333 ; display : block ; font : normal 82 . 5 % "Georgia" , Times New Roman, Times, serif ; line-height : 182 . 5 %; } #linkBox a span { color : #006AFF ; font : normal 82 . 5 % "Georgia" , Times New Roman, Times, serif ; line-height : 150 % ; } # linkBoxのUL ( リストスタイルのタイプ : なし ; 幅 : 400px ; ) # linkBox李( マージン : 5px 0 ;ボーダー下: 点線 1px # 300 ;国境トップ: 1px 点線 # 300 ; ) # linkBox李一( 色 : # E67701 ; 表示 : ブロック ; フォント : 太字 100 。 1 % "ジョージア" 、 Times New Romanを、タイムズ、 セリフ ; パディング : 5px ; テキスト装飾 : なし ;ラインの高さ: 182 。 5 % ; ) * HTMLの#李一( / IEで* / 幅 : 400pxホバー効果linkBox仕事 をする * ; ) # linkBox李一: ( 色 : # 333 ;表示 :ブロック ; フォント :ノーマル一日 ( 背景 : # eeeeee ; ) # linkBox ホバー 82 。 5 % "ジョージア" 、 Times New Romanを、タイムズ、 セリフ ; ラインの高さ : 182 。 5 % ; ) ( 色 # 1スパンlinkBox : # 006AFF ; フォント : ノーマル 82 。 5 % "ジョージア" 、 Times New Romanを、タイムズ、 セリフ ; 行の高さ : 150 % ; )
の例
最後に行われています。 我々のリンクのリストを表示するためのブロックホバー効果を作成しました。 対象は私のサンプルとアイテムのアクションでは、ブロックホバー効果を目の当たりにするには、リストの上にマウス。
関連記事:
もしこの記事は、以下の他の関連記事を読んで楽しんで確認してください:




















































コメントを送信する