我有一个简单的确认框代码,如下所示:
我有这样一个简单的确认框代码
<!DOCTYPE html>
<html>
<body>
<p>Click the button to alert the hostname of the current URL.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
confirm("Confirm!!!!");
}
</script>
</body>
</html>
但我的问题是,我想用CSS以一种非常简单的方式为“确定”和“取消”按钮设置样式。 我正在寻找一个真正简单的解决方案。
div
或其他外观类似于对话框的元素来创建具有样式的对话框。 - markasoftware