gpt4 book ai didi

html - 如何在页面的 Angular 落或中心添加 html 元素(按钮、链接等)?

转载 作者:太空宇宙 更新时间:2023-11-03 20:20:23 25 4
gpt4 key购买 nike

我有一个经理页面,我想在页面的右侧 添加一个LOG-OUT 按钮。

我知道如何一个一个添加按钮,例如:

enter image description here

这是上面页面的代码:

<!-- Bank manager's permissions -->

<!DOCTYPE html>
<html>
<head><title>Bank Manager's Transactions Page</title>
<link rel="stylesheet" href="./css/styles.css" type="text/css"/>
</head>
<body>
<table class="title">
<tr><th>Manager's Transactions Page</th></tr>
</table>

<h1>Hello ${name.firstName} ${name.lastName} , You've logged in successfully!</h1>
<h1>
Please choose one of the following options
</h1>

<!-- The followings are Manager's permissions -->

<fieldset>
<legend>To get a list of all the employees at the bank</legend>
<form action="blablabla"> <!-- THAT ONE forwards to a servlet that's called Admin1.java -->
<a href="adminAdds1">Press here to continue</a>
</form>
</fieldset>

<fieldset>
<legend>To get a list of all the clients at the bank</legend>
<form action="blablabla"> <!-- THAT ONE forwards to a servlet that's called Admin1.java -->
<a href="adminAdds1">Press here to continue</a>
</form>
</fieldset>

<fieldset>
<legend>To get a list of all the overdraft clients at the bank</legend>
<form action="blablabla"> <!-- THAT ONE forwards to a servlet that's called Admin1.java -->
<a href="adminAdds1">Press here to continue</a>
</form>
</fieldset>

<fieldset>
<legend>To get the number of overdraft clients at the bank</legend>
<form action="blablabla"> <!-- THAT ONE forwards to a servlet that's called Admin1.java -->
<a href="adminAdds1">Press here to continue</a>
</form>
</fieldset>

<fieldset>
<legend>To get a full financial report for the current month</legend>
<form action="blablabla"> <!-- THAT ONE forwards to a servlet that's called Admin1.java -->
<a href="adminAdds1">Press here to continue</a>
</form>
</fieldset>

<fieldset>
<legend>To get a full financial report for a specific date</legend>
<form action="blablabla"> <!-- THAT ONE forwards to a servlet that's called Admin1.java -->
<a href="adminAdds1">Press here to continue</a>
</form>
</fieldset>
</body>

如何在 JSP 文件的一个 Angular 中添加一个按钮?

问候

最佳答案

试试这个

样式.css

#logout
{
float:right;
margin-right:20px;
height:5px;
}

在页面中

<link href="style.css" rel="stylesheet" type="text/css" />
<div id="logout"><button>Your text</button></div>

关于html - 如何在页面的 Angular 落或中心添加 html 元素(按钮、链接等)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11861104/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com