2
When I create a Form using JS to open at the click of a Button, the text the Button is warped.
#openSendForm{
background: #0ebd64;
position: absolute;
width: 250px;
height: 50px;
right: 70px;
top: 15px;
text-align: center;
font-size: 30px;
font-family: "Futura";
}
<!DOCTYPE html>
<html>
<head>
<link href="StyleMain.css" rel="stylesheet" type="text/css"/>
<title>Teste</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(function() {
dialog = $("#teste1").dialog({
autoOpen: false,
height: 500,
width: 500,
modal: true,
buttons: {
Ok: function() {
$(this).dialog( "close" );
}
}
});
$("#openSendForm").button().on( "click", function()
{
dialog.dialog( "open" );
});
});
</script>
</head>
<body>
<input type="button" id="openSendForm" value="Enviar Torrent">
<div id="teste1">
<input type="file" id="teste" value="Escolher Torrent">
<input type="button" id="teste2" value="Enviar">
</div>
</body>
</html>
When I’m not using the button to open the Form it looks like this($("")
):
But when I use it to open the Form it looks like this($("#openSendForm")
):
I didn’t quite understand your doubt
– LocalHost
Your code is working normal, I don’t understand the error either. EDIT: You mean that the style of the buttons inside the popup are different from the buttons outside?
– Douglas Garrido
@Localhost Mude
$("#openSendForm")
for$("")
and notice the difference in the button.– Lucas Caresia
I get it, but I still don’t understand what you really want
– LocalHost
@Localhost I want the button not to be bugged, I do not know why the text goes down and it loses the edges, I would like it to remain normal. Understands ??
– Lucas Caresia
@Localhost Hello, I edited the question, after seeing your code I remembered that I forgot to put the CSS together the question.
– Lucas Caresia
How would you like it to look? You’re talking that the text of the button is way down?
– LocalHost
@Localhost I put in question the difference.
– Lucas Caresia