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

0
ruby - Apache2 で Ruby アプリケーションを実行できない
1
java - javaSE1.6でメールを送る方法
1
reporting-services - ssrs マスター詳細レポート
0
jquery-ui - 配列を上に移動するときのノックアウトの並べ替え可能なブレーク
1
localhost - Nuget Gallery をローカルホスト経由でローカルにホストすると、Visual Studio ライブラリ パッケージ マネージャーからそのフィードにアクセスできません - 404 Not Found が返されます
1
java - JPA OneToOne および OneToMany エンティティのインスタンス化/作成
4
powershell - PowerShell パスでのドル記号のエスケープが機能しない
1
sql - SQL Server での大文字から小文字への変換
3
php - コア Laravel 4 コンポーネント クラスを拡張しますか?
1
javascript - Handsontable とセルの色

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