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
sql - 列の1つとしてselectステートメントを使用する
1
javascript - テスト番号変換を適切に単体化する方法
2
xcode - ストーリーボードにラベルを追加すると、Xcodeのビルドが失敗します
2
css - ワードラップのCSS幅/最大幅?
1
php - 未定義の変数:foreach()に指定された製品と無効な引数
1
ajax - ラジオボタンの状態が更新されない
3
mysql - SQLによるフィルタリング結果
1
java - Androidを正規表現に置き換えます
2
ios - チェックイン要求を拒否するIOSMDMが機能しない
1
xargs - CURLを介した複数のファイルのダウンロードに一意のファイル名を付ける

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