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
xbrl - xbrlドキュメントの四半期と年を見つける方法
1
c++ - バイナリ データを読み取り、それを int に変換してから C++ に変換するにはどうすればよいですか?
1
python - scapy python でスニッフィングされたパケットを使用する
4
c - エラー: 数値定数の前に ')' が必要です
1
android - 4.x の Android GUI コンポーネント
0
ios - セルの UITableView の最初のページが表示されない
1
javascript - jQuery add/removeClass は、'right' プロパティの CSS トランジションをトリガーしません
4
c++ - Visual Studio Clang-Formatプラグインにclang-formatファイルを供給する方法は?
2
javascript - jQuery - div を表示する
2
android - バインダー トランザクションの失敗 Facebook API ログインの失敗

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知識共有ライセンス契約に従う。