Stack Overflow
  1. トップページ
  2. 問題
  3. 网站转让
  1. トップページ
    1. ナビゲーション
    2. 問題
    3. タブ
    1. Teams
      Stack Overflow for Teams – Start collaborating and sharing organizational knowledge. Create a free Team Why Teams?
    2. Teams
    3. Create free Team
Collectives on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more

html - 親要素の下に置く

翻译自:https://stackoverflow.com/questions/12807787 2012-10-09T20:18:25.610
105 次
This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.

これは簡単な修正だと思いますが、今のところ見つかりません。

(以下のスクリーンショットを検討してください)

<a class="addcomment">内に があり、その高さに関係なく、常に の左下に配置し<p>たいだけです。<a><p>

が の親であることは確かですが、を使用 position: relative; left: 0px; bottom: 0px;してもうまくいきません。<p><a>

これは、要素の現在の CSS スタイルです。

a.addcomment:link,
a.addcomment:visited {
  text-decoration: none;
  border-bottom: 1px dotted #820106;
  color: #820106;
}

a.addcomment:hover,
a.addcomment:active {
  text-decoration: none;
  border-bottom: none;
  color: #820106;
}

とにかくタグが一番下にあるので、これはよさそうです

これは、タグが必要な場所の下部にないためではありません

事前に知識と提案をありがとう

htmlcss
4

2 に答える 2

This answer is useful
4

をposition:relativep に、a を with に付けます。position absolute; bottom:0; left:0

于 2012-10-09T20:20:27.843 に答える
This answer is useful
1

「P」要素の最小高さを試すことができます。

于 2012-10-09T20:38:54.833 に答える

Related

2
python - whileループエラーを介して値を渡す
2
wpf - MVVM Light を使用した入力検証と UI 例外
1
css - ボックスの影がフッター div の上に表示されないのはなぜですか?
1
android - java.lang.NullPointerException Android エミュレーター
1
php - デュアル リスト ボックス PHP で選択した値を取得する
1
html - プラグインから wordpress メディア ライブラリにファイルをアップロードする方法は?
1
svn - CentOS 6.3 svn コマンド ラインの更新
2
iphone - iPhoneのテーブルビューでカスタムヘッダーを非表示
1
vb.net - Vb.net: WPF リッチテキスト ボックスを winforms に追加する方法
0
java - URL を結合して 1 つの GUI に表示 android,java

Reference

php × 1429865
c/c++ × 756500
nginx × 49975
mongodb × 159057
mybatis × 3233
anaconda × 13410
pycharm × 14671
python × 1902243
vscode × 56040
docker × 110988
github × 49000
flask × 49129
ffmpeg × 24037
jmeter × 16910
matplotlib × 63493
bootstrap × 54641
Stack Overflow 日本語サイト

CC BY-SA知識共有ライセンス契約に従う。