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

1
java - Javaで異なるClassLoaderを使用してロードされたクラスをリロードする方法は?
0
java - テキスト ファイルからの Java 引数
1
symfony - プロバイダー セクションのエンティティを設定すると MappingException
1
java - Javaのクラスは抽象的ではありませんか? インターフェース 関係する用途
2
java - Androidコードで何らかのループが導入されたときにMain.xmlがロードされない
3
python - 2 つのリスト要素を 2 回比較しないリストからの Random.Choice (Python)
2
c# - 両方が同期されるように、ViewModel はモデルとどのように通信する必要がありますか?
3
android - Android - 2.3.3 および 4.0 OS での非同期タスクの動作
2
java - 私のプログラムは奇妙な結果を出力します:cycle @ 530daa cycle @ 530daa cycle @ a62fc3 cycle @ a62fc3
1
bson - BSONからMessagepackへ

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